llvm-project/clang/lib
Alex Lorenz c1554f32e3 [clang][FileManager] Support empty file name in getVirtualFileRef for serialized diagnostics
After https://reviews.llvm.org/D90484 libclang is unable to read a serialized diagnostic file
which contains a diagnostic which came from a file with an empty filename. The reason being is
that the serialized diagnostic reader is creating a virtual file for the "" filename, which now
fails after the changes in https://reviews.llvm.org/D90484. This patch restores the previous
behavior in getVirtualFileRef by allowing it to construct a file entry ref with an empty name by
pretending its name is "." so that the directory entry can be created.

Differential Revision: https://reviews.llvm.org/D100428
2021-04-14 11:29:25 -07:00
..
APINotes [clang][APINotes] Fix -Wunused-function warning (NFC) 2021-04-01 09:52:43 +08:00
ARCMigrate [SystemZ][z/OS][Windows] Add new OF_TextWithCRLF flag and use this flag instead of OF_Text 2021-04-06 07:23:31 -04:00
AST [clang-tidy] Add check for implicit widening of multiplication result 2021-04-13 21:41:22 +03:00
ASTMatchers [ASTMatchers] Add `cxxBaseSpecifier` matcher (non-top-level) 2021-04-09 00:05:36 +01:00
Analysis [-Wcompletion-handler] Don't recognize init methods as conventional 2021-04-07 13:50:01 +03:00
Basic [clang][FileManager] Support empty file name in getVirtualFileRef for serialized diagnostics 2021-04-14 11:29:25 -07:00
CodeGen [WebAssembly] Codegen for f64x2.convert_low_i32x4_{s,u} 2021-04-14 10:42:45 -07:00
CrossTU [analyzer][CTU] API for CTU macro expansions 2021-02-22 11:12:22 +01:00
DirectoryWatcher Revert "ADT: Migrate users of AlignedCharArrayUnion to std::aligned_union_t, NFC" 2020-12-14 17:04:06 -08:00
Driver [Driver] Make the findVCToolChainViaEnvironment case-insensitive 2021-04-13 13:36:37 -07:00
Edit [Matrix] Implement C-style explicit type conversions for matrix types. 2021-04-10 11:48:41 +01:00
Format clang-format: fix undefined behavior. 2021-04-14 19:41:18 +02:00
Frontend Add flag for showing skipped headers in -H / --show-includes output 2021-04-14 17:01:51 +02:00
FrontendTool [NFC] Refactor Registry loops to range for 2020-06-19 00:40:10 +01:00
Headers [OpenCL] Add as_size/ptrdiff/intptr/uintptr_t operators 2021-04-07 10:16:41 +01:00
Index [index] Improve macro indexing support 2021-04-06 09:12:14 -07:00
IndexSerialization [index-while-building] Fix build with -DBUILD_SHARED_LIBS=True 2020-08-20 15:12:56 +01:00
Lex [C++2b] Support size_t literals 2021-03-31 13:36:23 +00:00
Parse Implement WG21 P2156R1/WG14 N2557 on duplicate attributes 2021-04-13 12:30:04 -04:00
Rewrite [clang] DeltaTree::AddDelta - fix "initialization is never read" clang-tidy warning. NFCI. 2021-03-02 15:01:34 +00:00
Sema CPUDispatch- allow out of line member definitions 2021-04-14 06:19:49 -07:00
Serialization [OpenMP51] Initial support for masked directive and filter clause 2021-04-09 14:00:36 -05:00
StaticAnalyzer [analyzer] [NFC] Eliminate dispatchCast, evalCastFromNonLoc and evalCastFromLoc functions from SValBuilder 2021-04-13 18:56:04 +03:00
Testing Fix MSVC "not all control paths return a value" warning. NFC. 2020-06-05 10:45:59 +01:00
Tooling [libTooling] Add smart pointer support to the `access` Stencil 2021-04-14 10:45:59 -07:00
CMakeLists.txt APINotes: add APINotesYAMLCompiler 2020-11-05 18:55:13 +00:00