llvm-project/clang/test
Jan Svoboda a2d805c020 [clang][modules] Delay creating `IdentifierInfo` for names of explicit modules
When using explicit Clang modules, some declarations might unexpectedly become invisible.

This is caused by the mechanism that loads PCM files passed via `-fmodule-file=<path>` and creates an `IdentifierInfo` for the module name. The `IdentifierInfo` creation takes place when the `ASTReader` is in a weird state, with modules that are loaded but not yet set up properly. This patch delays the creation of `IdentifierInfo` until the `ASTReader` is done with reading the PCM.

Note that the `-fmodule-file=<name>=<path>` form of the argument doesn't suffer from this issue, since it doesn't create `IdentifierInfo` for the module name.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D111543
2021-10-18 11:50:29 +02:00
..
APINotes
ARCMT Revert "Compress formatting of array type names (int [4] -> int[4])" 2021-10-14 14:49:25 -07:00
AST [AIX] Enable int128 in 64 bit mode 2021-10-15 16:23:04 +00:00
ASTMerge Revert "Compress formatting of array type names (int [4] -> int[4])" 2021-10-14 14:49:25 -07:00
Analysis [AIX] Enable int128 in 64 bit mode 2021-10-15 16:23:04 +00:00
CXX [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default (2) 2021-10-16 12:01:41 +09:00
ClangScanDeps [clang][modules] Cache loads of modules imported by PCH 2021-10-13 18:09:52 +02:00
CodeCompletion Diagnose -Wunused-value based on CFG reachability 2021-09-28 10:00:15 -07:00
CodeGen Fix missing failures in clang-ppc64be* and retry fixing clang-x64-windows-msvc 2021-10-16 16:20:14 +09:00
CodeGenCUDA [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default (2) 2021-10-16 12:01:41 +09:00
CodeGenCXX Fix missing failures in clang-ppc64be* and retry fixing clang-x64-windows-msvc 2021-10-16 16:20:14 +09:00
CodeGenCoroutines [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default (2) 2021-10-16 12:01:41 +09:00
CodeGenHIP
CodeGenObjC [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default (2) 2021-10-16 12:01:41 +09:00
CodeGenObjCXX [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default (2) 2021-10-16 12:01:41 +09:00
CodeGenOpenCL [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default (2) 2021-10-16 12:01:41 +09:00
CodeGenOpenCLCXX [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default (2) 2021-10-16 12:01:41 +09:00
CodeGenSYCL [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default (2) 2021-10-16 12:01:41 +09:00
Coverage
CoverageMapping Revert "[Coroutines] [Clang] Look up coroutine component in std namespace first" 2021-09-03 16:01:09 -04:00
Driver [RISCV] Unify the arch string parsing logic to to RISCVISAInfo. 2021-10-17 16:25:23 +08:00
FixIt Implement P1949 2021-08-18 07:33:14 -04:00
Format
Frontend [inliner] Mandatory inlining decisions produce remarks 2021-10-05 14:01:25 -07:00
Headers [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default (2) 2021-10-16 12:01:41 +09:00
Import Revert "Compress formatting of array type names (int [4] -> int[4])" 2021-10-14 14:49:25 -07:00
Index Revert "Compress formatting of array type names (int [4] -> int[4])" 2021-10-14 14:49:25 -07:00
Integration
InterfaceStubs [ifs][elfabi] Merge llvm-ifs/elfabi tools 2021-07-19 11:23:19 -07:00
Interpreter Reland "[clang-repl] Allow loading of plugins in clang-repl." 2021-10-05 13:04:01 +00:00
Layout Revert "Compress formatting of array type names (int [4] -> int[4])" 2021-10-14 14:49:25 -07:00
Lexer Implement #pragma clang final extension 2021-09-27 14:11:16 -05:00
LibClang libclang.so: Make SONAME independent from LLVM version 2021-07-26 16:37:26 -07:00
Misc [AArch64] Fix failing test target-invalid-cpu-note.c 2021-10-15 16:10:46 +01:00
Modules [clang][modules] Delay creating `IdentifierInfo` for names of explicit modules 2021-10-18 11:50:29 +02:00
OpenMP [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default (2) 2021-10-16 12:01:41 +09:00
PCH [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default (2) 2021-10-16 12:01:41 +09:00
Parser [Parse] Improve diagnostic and recovery when there is an extra override in the outline method definition. 2021-10-18 10:00:21 +02:00
ParserSYCL
Preprocessor Bump the value of __STDC_VERSION__ in -std=c2x mode 2021-10-17 09:23:43 -04:00
Profile Resolve lit failures in clang after 8ca4b3e's land 2021-10-16 13:51:50 +09:00
Refactor
Rewriter
Sema [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default (2) 2021-10-16 12:01:41 +09:00
SemaCUDA [HIP] Relax conditions for address space cast in builtin args 2021-10-15 15:35:52 -06:00
SemaCXX [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default (2) 2021-10-16 12:01:41 +09:00
SemaObjC [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default (2) 2021-10-16 12:01:41 +09:00
SemaObjCXX Revert "Compress formatting of array type names (int [4] -> int[4])" 2021-10-14 14:49:25 -07:00
SemaOpenCL Revert "Compress formatting of array type names (int [4] -> int[4])" 2021-10-14 14:49:25 -07:00
SemaOpenCLCXX Revert "Compress formatting of array type names (int [4] -> int[4])" 2021-10-14 14:49:25 -07:00
SemaSYCL Reland [clang] Check unsupported types in expressions 2021-10-15 13:55:36 +03:00
SemaTemplate Revert "Compress formatting of array type names (int [4] -> int[4])" 2021-10-14 14:49:25 -07:00
TableGen
Templight
Tooling [clang][tooling] Accept Clang invocations with multiple jobs 2021-07-27 10:47:55 +02:00
Unit
VFS [Modules] Do not remove failed modules after the control block phase 2021-08-17 16:46:51 -07:00
clang-rename
utils/update_cc_test_checks [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default (2) 2021-10-16 12:01:41 +09:00
.clang-format
CMakeLists.txt Revert "Reland "[clang-repl] Re-implement clang-interpreter as a test case."" 2021-10-08 17:43:23 -07:00
TestRunner.sh
cxx-sections.data
lit.cfg.py Revert "Reland "[clang-repl] Re-implement clang-interpreter as a test case."" 2021-10-08 17:43:23 -07:00
lit.site.cfg.py.in libclang.so: Make SONAME independent from LLVM version 2021-07-26 16:37:26 -07:00
make_test_dirs.pl