We're a place where coders share, stay up-to-date and grow their careers.
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.
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.