projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4389f9b
)
[clangd] Make an include always refer to itself. Background: clang-review expects...
author
Viktoriia Bakalova
<bakalova@google.com>
Tue, 18 Jul 2023 15:48:24 +0000
(15:48 +0000)
committer
Viktoriia Bakalova
<bakalova@google.com>
Wed, 19 Jul 2023 08:32:53 +0000
(08:32 +0000)
Differential Revision: https://reviews.llvm.org/D155614
clang-tools-extra/clangd/XRefs.cpp
patch
|
blob
|
history
diff --git
a/clang-tools-extra/clangd/XRefs.cpp
b/clang-tools-extra/clangd/XRefs.cpp
index
29ce1f3
..
80a7d02
100644
(file)
--- a/
clang-tools-extra/clangd/XRefs.cpp
+++ b/
clang-tools-extra/clangd/XRefs.cpp
@@
-1367,9
+1367,6
@@
maybeFindIncludeReferences(ParsedAST &AST, Position Pos,
rangeTillEOL(SM.getBufferData(SM.getMainFileID()), Inc.HashOffset);
Result.Loc.uri = URIMainFile;
Results.References.push_back(std::move(Result));
-
- if (Results.References.empty())
- return std::nullopt;
return Results;
}
} // namespace