[PATCH] D67091: Fix for headers having the same name as a directory
Kousik Kumar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 3 19:45:28 PDT 2019
kousikk added a comment.
Sure I'll add a test case!
================
Comment at: clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp:196
+ return llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>>(std::make_error_code(std::errc::is_a_directory));
+ }
+ }
----------------
arphaman wrote:
> This change dropped the createFile call, and didn't fix the issue where the same could happen at the end of the function. Could you please perform this check and return inside of `createFile` instead? This would ensure that both uses are fixed.
Ah sorry, I didn't mean to drop the `createFile()` call. Sure will fix inside createFile() instead.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67091/new/
https://reviews.llvm.org/D67091
More information about the cfe-commits
mailing list