Ericsson / clang

Cross Translation Unit analysis capability for Clang Static Analyzer. (Fork of official clang at http://llvm.org/git/clang)
http://clang.llvm.org/
Other
15 stars 10 forks source link

introduce a new clang parameter to report ODR errors as warnings #532

Closed dkrupp closed 5 years ago

gamesh411 commented 5 years ago

Make odr diagnostics uniform, making them warnings, and assigning them to diaggroups, so they can be propagated to errors. Fix unit tests to consider odr errors warnings.

gamesh411 commented 5 years ago

551 makes the odr-related errors warnings by default

dkrupp commented 5 years ago

create an upstream patch for this.

gamesh411 commented 5 years ago

phabricator review: https://reviews.llvm.org/D55646

dkrupp commented 5 years ago

Let's find out why don't we see any warnings. Try to explicitly switch on ODR warnings. we would use this for internal debugging.