[PATCH] D132833: [clangd] Fail more gracefully if QueryDriverDatabase cannot determine file type
Nathan Ridge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 29 09:59:37 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9af0a142e436: [clangd] Fail more gracefully if QueryDriverDatabase cannot determine file type (authored by nridge).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132833/new/
https://reviews.llvm.org/D132833
Files:
clang-tools-extra/clangd/QueryDriverDatabase.cpp
Index: clang-tools-extra/clangd/QueryDriverDatabase.cpp
===================================================================
--- clang-tools-extra/clangd/QueryDriverDatabase.cpp
+++ clang-tools-extra/clangd/QueryDriverDatabase.cpp
@@ -341,7 +341,7 @@
auto Type = driver::types::lookupTypeForExtension(Ext);
if (Type == driver::types::TY_INVALID) {
elog("System include extraction: invalid file type for {0}", Ext);
- return {};
+ return Cmd;
}
Lang = driver::types::getTypeName(Type);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132833.456390.patch
Type: text/x-patch
Size: 542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220829/93407c74/attachment.bin>
More information about the cfe-commits
mailing list