Development tool to identify missed opportunities for const

Since C ++ compilers can (usually) detect const ness violations, are there any tools that will identify missed opportunities for declaring something as const ?

+7
c ++ const code-analysis
source share
1 answer

gcc has -Wsuggest-attribute = [pure | const | noreturn | format], but I believe that they are limited by functions and function pointers.

http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

+14
source share

All Articles