You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Technically the member function '$symbol' can be const.\nThe member function '$symbol' can be made a const " :
2631
+
"Either there is a missing 'override', or the member function '$symbol' can be const.\nUnless it overrides a base class member, the member function '$symbol' can be made a const ";
"Technically the member function '$symbol' can be const.\n"
2626
-
"The member function '$symbol' can be made a const "
2634
+
+ msg +
2627
2635
"function. Making this function 'const' should not cause compiler errors. "
2628
2636
"Even though the function can be made const function technically it may not make "
2629
2637
"sense conceptually. Think about your design and the task of the function first - is "
2630
2638
"it a function that must not change object internal state?", CWE398, Certainty::inconclusive);
2631
-
else
2639
+
}
2640
+
else {
2641
+
const std::string msg = foundAllBaseClasses ?
2642
+
"Technically the member function '$symbol' can be static (but you may consider moving to unnamed namespace).\nThe member function '$symbol' can be made a static " :
2643
+
"Either there is a missing 'override', or the member function '$symbol' can be static.\nUnless it overrides a base class member, the member function '$symbol' can be made a static ";
0 commit comments