I’m currently in the process of learning C++, and because I’m still learning, I keep making mistakes.
With a language as permissive as C++, it often takes a long time to figure out exactly what’s wrong — because the compiler lets me get away with a lot. I realize that this flexibility is one of C++’s major strengths, but it makes it difficult to learn the basic language.
Is there some tool I can use to analyze my code and make suggestions based on best practices or just sensible coding? Preferably as an Eclipse plugin or linux application.
I’m currently in the process of learning C++, and because I’m still learning, I
Share
Enable maximum compiler warnings (that’s the
-Walloption if you’re using the Gnu compiler).‘Lint’ is the archetypical static analysis tool.
valgrindis a good run-time analyzer.