cppcheck
TIL, thanks! I don't know that I've ever compiled C++ without that set of flags, I'm a little scared to.
Just in case I wasn't clear, cppcheck is an external static analyser, but it's quite a good one!
Yeah, I never work without -Wall -Wextra -Werror. I ususally throw -Wpedantic in there too, for good measure.
-Wall -Wextra -Werror
-Wpedantic
Also, Qt Creator IDE has an amazing static analyzer working out-of-the box.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
TIL, thanks! I don't know that I've ever compiled C++ without that set of flags, I'm a little scared to.
Just in case I wasn't clear,
cppcheck
is an external static analyser, but it's quite a good one!Yeah, I never work without
-Wall -Wextra -Werror
. I ususally throw-Wpedantic
in there too, for good measure.Also, Qt Creator IDE has an amazing static analyzer working out-of-the box.