User forums > Help
CppCheck not working?
(1/1)
fmc0501:
I installed cppcheck using
--- Code: ---sudo apt install cppcheck
--- End code ---
and restarted C::B.
Checked to make sure CppCheck loaded, then opened a console program and removed
--- Code: --- using namespace std;
--- End code ---
and added
--- Code: --- cout <<
--- End code ---
inside main. I thought, through the use of CppCheck, that I'd get an error for leaving off std::, but I didn't. This behavior's included Visual Studio's editor and Qt's Creator through Intellisense and ?clangd? respectively. If not CppCheck, then is there a plugin that performs similarily to Intellisense?
oBFusCATed:
CppCheck is a static analyzer, a linter. It detects certain patterns which are questionable or buggy.
If you compile your project you'll probably get an error. Such errors are reported by the compiler.
I suppose visual studio and qtcreator provide fix-me-s, C::B currently doesn't.
fmc0501:
It aint really necessary anyhow. Just kind of neat to have errors caught on the fly. That's all.
Thanks for your answer, oBFusCATed.
Navigation
[0] Message Index
Go to full version