[all-commits] [llvm/llvm-project] 9af0a1: [clangd] Fail more gracefully if QueryDriverDataba...
Nathan Ridge via All-commits
all-commits at lists.llvm.org
Mon Aug 29 09:59:39 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9af0a142e43625cb8478b83692510a5abd39f808
https://github.com/llvm/llvm-project/commit/9af0a142e43625cb8478b83692510a5abd39f808
Author: Nathan Ridge <zeratul976 at hotmail.com>
Date: 2022-08-29 (Mon, 29 Aug 2022)
Changed paths:
M clang-tools-extra/clangd/QueryDriverDatabase.cpp
Log Message:
-----------
[clangd] Fail more gracefully if QueryDriverDatabase cannot determine file type
Currently, QueryDriverDatabase returns an empty compile command
if it could not determine the file type.
This failure mode is unnecessarily destructive; it's better to
just return the incoming compiler command, which is still more
likely to be useful than an empty command.
Differential Revision: https://reviews.llvm.org/D132833
More information about the All-commits
mailing list