[cfe-dev] Exclude protobuf generated files

George Kollias georgioskollias at gmail.com
Tue Nov 25 12:49:49 PST 2014


Hello all,
Recently, we started using the clang static analyzer in our project
and it's already very helpful. One thing we'd like to improve though
is to reduce the number of the warnings/bugs we get about protobuf
generated files -*.pb.cc- (we're not really interested in them). What
would be the best way to avoid analysing them without affecting
heavily the rest of the code? E.g. would it be better to avoid
generating these files completely or it'd be better to wrap each of
these files in #ifndef __clang_analyzer__/#endif blocks?

Thank you,
George



More information about the cfe-dev mailing list