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

Functions with non-external linkage are not imported correctly. #493

Closed balazske closed 5 years ago

balazske commented 6 years ago

Currently the following code can not be imported:

static void f();
static void f();

Functions with non-external linkage (static in C) are not checked for structural equivalence, instead error is reported if any function with same name already exists. Code should be updated to make this work for C and for C++ anonymous namespace too.

martong commented 5 years ago

Fixed.