[analyzer][ctu] Only import const and trivial VarDecls
authorGabor Marton <gabor.marton@ericsson.com>
Fri, 1 Apr 2022 09:58:17 +0000 (11:58 +0200)
committerGabor Marton <gabor.marton@ericsson.com>
Fri, 1 Apr 2022 11:49:39 +0000 (13:49 +0200)
commite63b81d10e023b4d8e9f61ca29a678c74ce2c1cb
tree7fce3d952cf81e1da52ad756b04c1d0725ea31d5
parent111cb395c9771a21f45028aeca93488ace5ff487
[analyzer][ctu] Only import const and trivial VarDecls

Do import the definition of objects from a foreign translation unit if that's type is const and trivial.

Differential Revision: https://reviews.llvm.org/D122805
clang/include/clang/CrossTU/CrossTranslationUnit.h
clang/lib/CrossTU/CrossTranslationUnit.cpp
clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
clang/test/Analysis/Inputs/ctu-other.cpp
clang/test/Analysis/Inputs/ctu-other.cpp.externalDefMap.ast-dump.txt
clang/test/Analysis/ctu-main.cpp
clang/test/Analysis/func-mapping-test.cpp
clang/tools/clang-extdef-mapping/ClangExtDefMapGen.cpp