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

Import defaulted flags of functions. #659

Closed balazske closed 5 years ago

balazske commented 5 years ago

The "default" related flags were not copied at function import. These values are checked at structural equivalence and if not copied can cause invalid non-equivalence with the from-context. The added test fails without this patch because the destructors are not linked into one decl chain.

balazske commented 5 years ago

No but I discovered this problem during the debugging (and maybe it is one of the causes).

balazske commented 5 years ago

https://reviews.llvm.org/D65999 Here additionally the "deleted" flag is set too and a new test is added.