开发工具,以识别"const"错失的机会

Cha*_*hap 7 c++ code-analysis const

由于C++编译器可以(通常)检测违规const湖,还有什么会确定申报的东西作为错失良机工具const

kch*_*hoi 14

gcc有-Wsuggest-attribute = [pure | const | noreturn | format],但我相信这些仅限于函数和函数指针.

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