diff options
author | Serge Guelton <sguelton@redhat.com> | 2019-06-20 20:25:59 +0000 |
---|---|---|
committer | Serge Guelton <sguelton@redhat.com> | 2019-06-20 20:25:59 +0000 |
commit | 60ca31a7ddabb46c9ea3762949629433c5eb4c8c (patch) | |
tree | abd6878a7c01f0b1ec8bd08bfda0c550e9018028 /clang/lib/Tooling/Tooling.cpp | |
parent | 273d97e6bf4eef567499fd3bb0ff23eb6897de9b (diff) | |
download | bcm5719-llvm-60ca31a7ddabb46c9ea3762949629433c5eb4c8c.tar.gz bcm5719-llvm-60ca31a7ddabb46c9ea3762949629433c5eb4c8c.zip |
[clang-tidy] Fail gracefully upon empty database fields
Fix bz#42281
Differential Revision: https://reviews.llvm.org/D63613
llvm-svn: 363975
Diffstat (limited to 'clang/lib/Tooling/Tooling.cpp')
-rw-r--r-- | clang/lib/Tooling/Tooling.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Tooling/Tooling.cpp b/clang/lib/Tooling/Tooling.cpp index 68760ef7569..a7c64866a48 100644 --- a/clang/lib/Tooling/Tooling.cpp +++ b/clang/lib/Tooling/Tooling.cpp @@ -481,7 +481,7 @@ int ClangTool::run(ToolAction *Action) { if (OverlayFileSystem->setCurrentWorkingDirectory( CompileCommand.Directory)) llvm::report_fatal_error("Cannot chdir into \"" + - Twine(CompileCommand.Directory) + "\n!"); + Twine(CompileCommand.Directory) + "\"!"); // Now fill the in-memory VFS with the relative file mappings so it will // have the correct relative paths. We never remove mappings but that |