diff options
author | Rafael Stahl <r.stahl@tum.de> | 2019-04-23 11:04:41 +0000 |
---|---|---|
committer | Rafael Stahl <r.stahl@tum.de> | 2019-04-23 11:04:41 +0000 |
commit | 55bbda44b412f57f2bfa3f69c6ccaecc1acf3244 (patch) | |
tree | 48883aeb88c80642bf236b5520f986f472ca4d33 /test/Analysis/Inputs/ctu-other.cpp.externalDefMap.txt | |
parent | eb72871e0572587b9ab80c8abbb2845888f6b651 (diff) |
[analyzer][CrossTU] Extend CTU to VarDecls with initializer
Summary:
The existing CTU mechanism imports `FunctionDecl`s where the definition is available in another TU. This patch extends that to VarDecls, to bind more constants.
- Add VarDecl importing functionality to CrossTranslationUnitContext
- Import Decls while traversing them in AnalysisConsumer
- Add VarDecls to CTU external mappings generator
- Name changes from "external function map" to "external definition map"
Reviewers: NoQ, dcoughlin, xazax.hun, george.karpenkov, martong
Reviewed By: xazax.hun
Subscribers: Charusso, baloghadamsoftware, mikhail.ramalho, Szelethus, donat.nagy, dkrupp, george.karpenkov, mgorny, whisperity, szepet, rnkovacs, a.sidorin, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D46421
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358968 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/Inputs/ctu-other.cpp.externalDefMap.txt')
-rw-r--r-- | test/Analysis/Inputs/ctu-other.cpp.externalDefMap.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Analysis/Inputs/ctu-other.cpp.externalDefMap.txt b/test/Analysis/Inputs/ctu-other.cpp.externalDefMap.txt index 5461685dc6..57f4194831 100644 --- a/test/Analysis/Inputs/ctu-other.cpp.externalDefMap.txt +++ b/test/Analysis/Inputs/ctu-other.cpp.externalDefMap.txt @@ -13,3 +13,13 @@ c:@N@chns@S@chcls@F@chf4#I# ctu-chain.cpp.ast c:@N@chns@F@chf2#I# ctu-chain.cpp.ast c:@F@fun_using_anon_struct#I# ctu-other.cpp.ast c:@F@other_macro_diag#I# ctu-other.cpp.ast +c:@extInt ctu-other.cpp.ast +c:@N@intns@extInt ctu-other.cpp.ast +c:@extS ctu-other.cpp.ast +c:@S@A@a ctu-other.cpp.ast +c:@extSC ctu-other.cpp.ast +c:@S@ST@sc ctu-other.cpp.ast +c:@extSCN ctu-other.cpp.ast +c:@extSubSCN ctu-other.cpp.ast +c:@extSCC ctu-other.cpp.ast +c:@extU ctu-other.cpp.ast |