Since C ++ compilers can (usually) detect const ness violations, are there any tools that will identify missed opportunities for declaring something as const ?
const
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