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

Fix import of static and anonymous functions #496

Closed martong closed 6 years ago

martong commented 6 years ago

Porting back @balazske 's change from here: https://github.com/Ericsson/clang/pull/457/commits/75a78c811a8334c6d6cc96b44d2f89645fb8c42f

martong commented 6 years ago

There is one assert when analyzing tmux:

Assertion `ToDecl->hasBody() && "Imported functions should have body."' failed. [1]

Still I merge it, because that is probably an independent error.

martong commented 5 years ago

https://reviews.llvm.org/D57322 https://reviews.llvm.org/D57232