We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60a8edf commit 6765b9cCopy full SHA for 6765b9c
clang-tools-extra/clangd/tool/ClangdMain.cpp
@@ -909,7 +909,11 @@ clangd accepts flags on the commandline, and in the CLANGD_FLAGS environment var
909
910
if (CheckFile.getNumOccurrences()) {
911
llvm::SmallString<256> Path;
912
- llvm::sys::fs::real_path(CheckFile, Path, /*expand_tilde=*/true);
+ if (auto Error =
913
+ llvm::sys::fs::real_path(CheckFile, Path, /*expand_tilde=*/true)) {
914
+ elog("Failed to resolve path {0}: {1}", CheckFile, Error.message());
915
+ return 1;
916
+ }
917
log("Entering check mode (no LSP server)");
918
uint32_t Begin = 0, End = std::numeric_limits<uint32_t>::max();
919
if (!CheckFileLines.empty()) {
0 commit comments