llvm-project/clang/test
Rafael Stahl 850361f6c1 [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

llvm-svn: 358968
2019-04-23 11:04:41 +00:00
..
ARCMT
AST [Test] Remove obsolete test. 2019-04-16 16:44:45 +00:00
ASTMerge/choose-expr [ASTImporter] Add support for importing ChooseExpr AST nodes. 2019-02-26 19:26:41 +00:00
Analysis [analyzer][CrossTU] Extend CTU to VarDecls with initializer 2019-04-23 11:04:41 +00:00
CXX [c++2a] Implement semantic restrictions for 'export' declarations. 2019-04-22 22:50:11 +00:00
CodeCompletion Support framework import/include auto-completion 2019-02-27 17:40:33 +00:00
CodeGen [PowerPC] Fix test with -fno-discard-value-names after rC358949 2019-04-23 07:39:23 +00:00
CodeGenCUDA [HIP-Clang] Fat binary should not be produced for non GPU code 2 2019-04-02 20:49:41 +00:00
CodeGenCXX Re-commit r357452: SimplifyCFG SinkCommonCodeFromPredecessors: Also sink function calls without used results (PR41259) 2019-04-16 12:13:25 +00:00
CodeGenCoroutines
CodeGenObjC Re-commit r357452: SimplifyCFG SinkCommonCodeFromPredecessors: Also sink function calls without used results (PR41259) 2019-04-16 12:13:25 +00:00
CodeGenObjCXX [CodeGen] Fix a regression by emitting lambda expressions in EmitLValue 2019-04-02 19:48:07 +00:00
CodeGenOpenCL [OpenCL] Re-fix invalid address space generation for clk_event_t arguments of enqueue_kernel builtin function 2019-04-11 06:18:17 +00:00
CodeGenOpenCLCXX [PR41157][OpenCL] Prevent implicit init of local addr space var in C++ mode. 2019-04-04 11:08:51 +00:00
Coverage
CoverageMapping Fix clang tests broken by r353547 that depend on InstrProf 2019-02-10 20:17:07 +00:00
Driver Enable frame pointer elimination for OpenBSD on powerpc. 2019-04-19 18:41:40 +00:00
FixIt Add support for attributes on @implementations in Objective-C 2019-04-11 17:55:30 +00:00
Format
Frontend [verify] Add support for location markers in directives. 2019-04-13 04:33:39 +00:00
Headers [PowerPC] [Clang] Port MMX intrinsics and basic test cases to Power 2019-04-23 05:50:24 +00:00
Import [ASTImporter] Fix importing OperatorDelete from CXXConstructorDecl 2019-01-22 17:59:45 +00:00
Index [libclang] Expose ext_vector_type 2019-04-17 09:08:50 +00:00
Integration
Layout
Lexer Factor out repeated code parsing and concatenating header-names from 2019-03-19 01:51:19 +00:00
Misc Support objc_nonlazy_class attribute on Objective-C implementations 2019-04-11 17:55:34 +00:00
Modules Modules: Adopt template parameters for variable templates to set their decl context correctly 2019-04-19 23:04:05 +00:00
OpenMP [OPENMP][NVPTX] target [teams distribute] simd maybe run without 2019-04-19 16:48:38 +00:00
PCH Clean up ObjCPropertyDecl printing 2019-04-08 19:52:45 +00:00
Parser [Sema][MSVC] Fix bogus microsoft-pure-definition warning on member function of class template 2019-04-21 13:12:10 +00:00
Preprocessor Remove use of lookahead from _Pragma handling and from all other 2019-04-11 21:18:22 +00:00
Profile [InstrProf] Use separate comdat group for data and counters 2019-02-27 23:38:44 +00:00
Refactor
Rewriter
Sema Add support for attributes on @implementations in Objective-C 2019-04-11 17:55:30 +00:00
SemaCUDA Permit redeclarations of a builtin to specify calling convention. 2019-03-21 13:30:56 +00:00
SemaCXX [c++2a] Implement semantic restrictions for 'export' declarations. 2019-04-22 22:50:11 +00:00
SemaObjC [Sema][ObjC] Don't warn about an implicitly retained self if the 2019-04-17 23:14:44 +00:00
SemaObjCXX [Sema][ObjC] Don't warn about an implicitly retained self if the 2019-04-17 23:14:44 +00:00
SemaOpenCL [AMDGPU] rename vi-insts into gfx8-insts 2019-04-05 18:25:00 +00:00
SemaOpenCLCXX [PR41247] Fixed parsing of private keyword in C++. 2019-03-28 11:47:14 +00:00
SemaTemplate Permit redeclarations of a builtin to specify calling convention. 2019-03-21 13:30:56 +00:00
TableGen Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Templight
Tooling Remove a bogus sed option in test. 2019-04-08 16:34:38 +00:00
Unit [lit] Set shlibpath_var on AIX 2019-03-29 23:33:04 +00:00
VFS [VFS] Implement `RedirectingFileSystem::getRealPath`. 2018-11-16 01:18:04 +00:00
clang-rename
.clang-format
CMakeLists.txt Moved everything SMT-related to LLVM and updated the cmake scripts. 2019-03-25 17:47:45 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [analyzer][CrossTU][NFC] Generalize to external definitions instead of external functions 2019-01-10 17:44:04 +00:00
lit.site.cfg.py.in Moved everything SMT-related to LLVM and updated the cmake scripts. 2019-03-25 17:47:45 +00:00
make_test_dirs.pl