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 db2f400 commit 4ca5cf6Copy full SHA for 4ca5cf6
clang-tools-extra/clangd/HeaderSourceSwitch.cpp
@@ -99,6 +99,9 @@ std::optional<Path> getCorrespondingHeaderOrSource(PathRef OriginalFile,
99
auto pathEqual = [](llvm::StringRef l, llvm::StringRef r) { return l == r; };
100
#endif
101
Index->lookup(Request, [&](const Symbol &Sym) {
102
+ if (llvm::StringRef{Sym.Definition.FileURI}.empty() ||
103
+ llvm::StringRef{Sym.CanonicalDeclaration.FileURI}.empty())
104
+ return;
105
auto TargetPathDefinition =
106
URI::resolve(Sym.Definition.FileURI, OriginalFile);
107
if (!TargetPathDefinition)
0 commit comments