llvm-project/clang/unittests
Ben Langmuir 6a79e2ff19 [clang] Add FileEntryRef::getNameAsRequested()
As progress towards having FileManager::getFileRef() return the path
as-requested by default, return a FileEntryRef that can use
getNameAsRequested() to retrieve this path, with the ultimate goal that
this should be the behaviour of getName() and clients should explicitly
request the "external" name if they need to (see comment in
FileManager::getFileRef). For now, getName() continues to return the
external path by looking through the redirects.

For now, the new function is only used in unit tests.

Differential Revision: https://reviews.llvm.org/D131004
2022-08-03 09:41:08 -07:00
..
AST Fixed a number of typos 2022-08-01 13:13:18 -04:00
ASTMatchers Fixed a number of typos 2022-08-01 13:13:18 -04:00
Analysis [clang][dataflow] Make the type of the post visit callback consistent 2022-08-03 05:58:38 +00:00
Basic [clang] Add FileEntryRef::getNameAsRequested() 2022-08-03 09:41:08 -07:00
CodeGen [CGDebugInfo] Access the current working directory from the `VFS` 2022-07-26 13:48:39 -07:00
CrossTU [analyzer][ctu] Fix wrong 'multiple definitions' errors caused by space characters in lookup names when parsing the ctu index file 2022-03-22 10:28:42 +08:00
DirectoryWatcher [clang] Use value instead of getValue (NFC) 2022-07-13 23:39:33 -07:00
Driver [test] Fix memory leak in validateTargetProfile 2022-07-16 16:47:50 -07:00
Format [clang-format] Handle Verilog attributes 2022-07-29 00:38:30 +00:00
Frontend Fix lack of cc1 flag in llvmcmd sections when assertions are enabled 2022-07-29 18:51:48 -07:00
Index [clang] Visit enum base specifiers in libIndex 2021-10-25 13:16:14 +02:00
Interpreter [clang-repl] Disable building when LLVM_STATIC_LINK_CXX_STDLIB is ON. 2022-07-31 05:42:57 +09:00
Introspection [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
Lex [clang] Use value instead of getValue (NFC) 2022-07-13 23:39:33 -07:00
Rename Bump googletest to 1.10.0 2021-05-14 19:16:31 +02:00
Rewrite
Sema [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
Serialization [Serialization] Add missing includes for CHAR_BIT 2022-05-19 10:04:25 +02:00
StaticAnalyzer [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
Tooling Fixed a number of typos 2022-08-01 13:13:18 -04:00
libclang
CMakeLists.txt [clang-repl] Disable building when LLVM_STATIC_LINK_CXX_STDLIB is ON. 2022-07-31 05:42:57 +09:00