hanchenye-llvm-project/clang/lib/Basic
Sam McCall e84385fef8 [FileManager] getFile(open=true) after getFile(open=false) should open the file.
Summary:
Old behavior is to just return the cached entry regardless of opened-ness.
That feels buggy (though I guess nobody ever actually needed this).

This came up in the context of clangd+clang-tidy integration: we're
going to getFile(open=false) to replay preprocessor actions obscured by
the preamble, but the compilation may subsequently getFile(open=true)
for non-preamble includes.

Reviewers: ilya-biryukov

Subscribers: ioeric, kadircet, cfe-commits

Differential Revision: https://reviews.llvm.org/D54691

llvm-svn: 347205
2018-11-19 13:37:46 +00:00
..
Targets Fix clang -Wimplicit-fallthrough warnings across llvm, NFC 2018-11-01 19:54:45 +00:00
Attributes.cpp Introduce the _Clang scoped attribute token. 2018-11-09 17:19:45 +00:00
Builtins.cpp NFC: Remove the ObjC1/ObjC2 distinction from clang (and related projects) 2018-10-30 20:31:30 +00:00
CMakeLists.txt Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
CharInfo.cpp
Cuda.cpp Add gfx909 to GPU Arch 2018-10-24 21:19:02 +00:00
Diagnostic.cpp Add a newline to SourceLocation dump output 2018-08-15 20:32:06 +00:00
DiagnosticIDs.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
DiagnosticOptions.cpp [Basic] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2018-02-16 23:40:07 +00:00
FileManager.cpp [FileManager] getFile(open=true) after getFile(open=false) should open the file. 2018-11-19 13:37:46 +00:00
FileSystemStatCache.cpp Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
FixedPoint.cpp Fix for broken build on clang-hexagon-elf for ambiguous call to 2018-08-06 19:31:00 +00:00
IdentifierTable.cpp Fix clang -Wimplicit-fallthrough warnings across llvm, NFC 2018-11-01 19:54:45 +00:00
LangOptions.cpp [OpenCL] Factor out language version printing 2018-05-08 13:47:43 +00:00
MemoryBufferCache.cpp
Module.cpp NFC: Remove the ObjC1/ObjC2 distinction from clang (and related projects) 2018-10-30 20:31:30 +00:00
ObjCRuntime.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
OpenMPKinds.cpp Add support for 'atomic_default_mem_order' clause on 'requires' directive. Also renamed test files relating to 'requires'. Differntial review: https://reviews.llvm.org/D53513 2018-11-02 12:18:11 +00:00
OperatorPrecedence.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
SanitizerBlacklist.cpp
SanitizerSpecialCaseList.cpp Update SanitizerSpecialCaseList to use renamed functions in base class. 2017-11-07 21:16:37 +00:00
Sanitizers.cpp [Basic] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2018-03-28 22:09:09 +00:00
SourceLocation.cpp Add dump() method for SourceRange 2018-08-30 23:10:52 +00:00
SourceManager.cpp Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
TargetInfo.cpp [Android] Increase default new alignment for Android 2018-08-01 17:55:34 +00:00
Targets.cpp Use the container form llvm::sort(C, ...) 2018-09-30 21:41:11 +00:00
Targets.h NFC: Add the emacs c++ mode hint "-*- C++ -*-" to the headers that don't have it 2018-07-24 00:07:49 +00:00
TokenKinds.cpp
Version.cpp
Warnings.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
XRayInstr.cpp [XRay] Add clang builtin for xray typed events. 2018-04-17 21:32:43 +00:00
XRayLists.cpp [XRay][llvm+clang] Consolidate attribute list files 2018-04-09 04:02:09 +00:00