llvm-project/clang/test
Keith Smiley a23a596793 [clang] Fix absolute file paths with -fdebug-prefix-map
Previously if you passed an absolute path to clang, where only part of
the path to the file was remapped, it would result in the file's DIFile
being stored with a duplicate path, for example:

```
!DIFile(filename: "./ios/Sources/bar.c", directory: "./ios/Sources")
```

This change handles absolute paths, specifically in the case they are
remapped to something relative, and uses the dirname for the directory,
and basename for the filename.

This also adds a test verifying this behavior for more standard uses as
well.

Differential Revision: https://reviews.llvm.org/D111352
2021-10-08 10:35:17 -07:00
..
APINotes
ARCMT Improve type printing of const arrays to normalize array-of-const and const-array 2021-09-13 19:17:05 -07:00
AST [PowerPC][MMA] Allow MMA builtin types in pre-P10 compilation units 2021-10-05 07:59:32 -05:00
ASTMerge
Analysis [analyzer][solver] Fix CmpOpTable handling bug 2021-10-06 18:28:03 +02:00
CXX Implement if consteval (P1938) 2021-10-05 08:04:14 -04:00
ClangScanDeps [ClangScanDeps][test] Add -fmodules-cache-path=DIR/cache to make diagnostics.c hermetic 2021-09-13 13:17:55 -07:00
CodeCompletion Diagnose -Wunused-value based on CFG reachability 2021-09-28 10:00:15 -07:00
CodeGen [clang] Fix absolute file paths with -fdebug-prefix-map 2021-10-08 10:35:17 -07:00
CodeGenCUDA [CFE][Codegen] Update auto-generated check lines for few GPU lit tests 2021-10-07 09:05:39 +05:30
CodeGenCXX [CFE][Codegen] Update auto-generated check lines for few GPU lit tests 2021-10-07 09:05:39 +05:30
CodeGenCoroutines Revert "[Coroutines] [Clang] Look up coroutine component in std namespace first" 2021-09-03 16:01:09 -04:00
CodeGenHIP
CodeGenObjC Fix a variety of bugs with nil-receiver checks when targeting 2021-10-08 05:44:06 -04:00
CodeGenObjCXX [AIX][ZOS] Disable LIT tests on AIX and z/OS due to lack of Objective-C support 2021-09-16 14:04:42 -04:00
CodeGenOpenCL [OpenCL] Fix as_type3 invalid store creation 2021-09-29 09:40:06 +01:00
CodeGenOpenCLCXX [C++4OpenCL] Introduces __remove_address_space utility 2021-08-06 10:40:22 +01:00
CodeGenSYCL [CFE][Codegen] Update auto-generated check lines for few GPU lit tests 2021-10-07 09:05:39 +05:30
Coverage
CoverageMapping Revert "[Coroutines] [Clang] Look up coroutine component in std namespace first" 2021-09-03 16:01:09 -04:00
Driver [Clang][OpenMP] Add partial support for Static Device Libraries 2021-10-08 09:37:51 +00: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 [CUDA] remove unneeded includes from CUDA-related headers. 2021-10-06 17:20:21 -07:00
Import [AIX][ZOS] Disable LIT tests on AIX and z/OS due to lack of Objective-C support 2021-09-16 14:04:42 -04:00
Index Revert "[Coroutines] [Clang] Look up coroutine component in std namespace first" 2021-09-03 16:01:09 -04: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 [AIX] Check for typedef properly when getting preferred type align 2021-09-08 16:21:52 -04: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 [NFC] Use CHECK-NEXT instead of CHECK-SAME in target-invalid-cpu-note.c 2021-10-08 22:07:40 +08:00
Modules [AIX] Disable tests failing due to missing DWARF sections 2021-10-08 12:06:38 -04:00
OpenMP [OpenMP] Introduce new flags to assert thread and team usage in the runtime 2021-10-07 22:23:09 -04:00
PCH Diagnose -Wunused-value based on CFG reachability 2021-09-28 10:00:15 -07:00
Parser Extend init-statement to allow alias-declaration 2021-10-08 07:13:45 -04:00
ParserSYCL
Preprocessor [RISCV] Remove experimental-b extension that includes all Zb* extensions 2021-10-07 20:47:17 -07:00
Profile [AIX] Change the linkage of profiling counter/data to be private 2021-09-29 00:47:25 +00:00
Refactor
Rewriter
Sema PR50644: Do not warn on a declaration of `operator"" _foo`. 2021-10-06 15:13:05 -07:00
SemaCUDA [CUDA] Pass ExecConfig through BuildCallToMemberFunction 2021-09-16 11:18:12 -07:00
SemaCXX Extend init-statement to allow alias-declaration 2021-10-08 07:13:45 -04:00
SemaObjC [Sema][ObjC] Allow conversions between pointers to ObjC pointers and 2021-08-25 10:22:29 -07:00
SemaObjCXX
SemaOpenCL [OpenCL] Supports optional writing to 3d images in C++ for OpenCL 2021 2021-09-20 10:07:38 +01:00
SemaOpenCLCXX [OpenCL] Initialize temporaries in the private address space 2021-09-13 12:56:04 +01:00
SemaSYCL Change __builtin_sycl_unique_stable_name to just use an Itanium mangling 2021-09-28 06:41:03 -07:00
SemaTemplate [clang] don't instantiate templates with injected arguments 2021-09-29 23:19:13 +02: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 Revert "[OpenMP] Codegen aggregate for outlined function captures" 2021-09-21 13:20:39 -07:00
.clang-format
CMakeLists.txt Reland "[clang-repl] Re-implement clang-interpreter as a test case." 2021-10-08 06:04:39 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py Reland "[clang-repl] Re-implement clang-interpreter as a test case." 2021-10-08 06:04:39 +00: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