|
|
|
|
|
by dbremner
1042 days ago
|
|
I'm not sure about static analyzers, but here are the clang warnings I use for my personal C++20 projects. You will get an enormous number of warnings from typical C++ code. I fix all of them, but doubt it would make sense to do so in a commercial environment. -Weverything - this enables every clang warning -Wno-c++98-compat - warns about using newer C++ features -Wno-c++98-compat-pedantic - warns about using newer C++ features -Wno-padded - warns about alignment padding. I optimize struct layout, so this warning only reports on cases I couldn't resolve. -Wno-poison-system-directories - I'm not cross-compiling anything. -Wno-pre-c++20-compat-pedantic - warns about using newer C++ features |
|