llvm-project/clang/lib
Kousik Kumar 4abac53302 In openFileForRead don't cache erroneous entries if the error relates to them being directories. Add tests.
Summary:
It seems that when the CachingFileSystem is first given a file to open that is actually a directory, it incorrectly
caches that path to be errenous and throws an error when subsequently a directory open call is made for the same
path.
This change makes it so that we do NOT cache a path if it turns out we asked for a file when its a directory.

Reviewers: arphaman

Subscribers: dexonsmith, cfe-commits

Tags: #clang

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

llvm-svn: 374366
2019-10-10 15:29:01 +00:00
..
ARCMigrate Removed some questionable default arguments from setters 2019-09-12 12:16:43 +00:00
AST [clang] prevent crash for nonnull attribut in constant context (Bug 43601) 2019-10-10 07:13:20 +00:00
ASTMatchers [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
Analysis Teach CallGraph to look into Generic Lambdas. 2019-09-30 19:12:29 +00:00
Basic [BPF] do compile-once run-everywhere relocation for bitfields 2019-10-08 18:23:17 +00:00
CodeGen Revert "[IRBuilder] Update IRBuilder::CreateFNeg(...) to return a UnaryOperator" 2019-10-10 14:13:54 +00:00
CrossTU [CrossTU] Fix problem with CrossTU AST load limit and progress messages. 2019-08-12 07:15:29 +00:00
DirectoryWatcher [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
Driver [Clang][OpenMP Offload] Add new tool for wrapping offload device binaries 2019-10-09 20:42:58 +00:00
Edit [C++2a] Add __builtin_bit_cast, used to implement std::bit_cast 2019-07-02 18:28:13 +00:00
Format [clang-format] Update noexcept reference qualifiers detection 2019-10-09 14:46:08 +00:00
Frontend [DebugInfo] Enable call site debug info for ARM and AArch64 2019-10-09 10:14:15 +00:00
FrontendTool [analyzer] Don't run the analyzer for -analyzer-list-enabled-checkers 2019-09-12 18:53:48 +00:00
Headers [x86] Adding support for some missing intrinsics: _castf32_u32, _castf64_u64, _castu32_f32, _castu64_f64 2019-09-25 02:24:05 +00:00
Index [clang][Index] Replace CodegenNameGenerator with ASTNameGenerator 2019-09-05 20:33:52 +00:00
Lex [clang-scan-deps] Improve string/character literal skipping 2019-10-08 22:42:44 +00:00
Parse [OPENMP50]Register vendor name only once in vendor context selector. 2019-10-10 15:15:26 +00:00
Rewrite [Rewrite][NFC] Add FIXMEs and tests for RemoveLineIfEmpty bug 2019-08-15 21:17:48 +00:00
Sema [sema] Revise `getCurrentMangleNumberContext` interface. NFC. 2019-10-10 03:14:51 +00:00
Serialization [AST] ASTReader::ReadSLocEntry(): move computation of FirstDecl into the branch where it's used 2019-10-10 12:22:42 +00:00
StaticAnalyzer Revert "[analyzer] A speculative attempt to avoid gcc-7 crashes..." 2019-09-26 18:52:00 +00:00
Tooling In openFileForRead don't cache erroneous entries if the error relates to them being directories. Add tests. 2019-10-10 15:29:01 +00:00
CMakeLists.txt Reland [clang] DirectoryWatcher 2019-07-12 20:34:10 +00:00