summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/XRefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clangd/XRefs.h')
-rw-r--r--clang-tools-extra/clangd/XRefs.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/clang-tools-extra/clangd/XRefs.h b/clang-tools-extra/clangd/XRefs.h
index dc2237cb0fd..8bd91024be3 100644
--- a/clang-tools-extra/clangd/XRefs.h
+++ b/clang-tools-extra/clangd/XRefs.h
@@ -124,11 +124,14 @@ llvm::Optional<HoverInfo> getHover(ParsedAST &AST, Position Pos,
format::FormatStyle Style,
const SymbolIndex *Index);
-/// Returns reference locations of the symbol at a specified \p Pos.
+struct ReferencesResult {
+ std::vector<Location> References;
+ bool HasMore = false;
+};
+/// Returns references of the symbol at a specified \p Pos.
/// \p Limit limits the number of results returned (0 means no limit).
-std::vector<Location> findReferences(ParsedAST &AST, Position Pos,
- uint32_t Limit,
- const SymbolIndex *Index = nullptr);
+ReferencesResult findReferences(ParsedAST &AST, Position Pos, uint32_t Limit,
+ const SymbolIndex *Index = nullptr);
/// Get info about symbols at \p Pos.
std::vector<SymbolDetails> getSymbolInfo(ParsedAST &AST, Position Pos);
OpenPOWER on IntegriCloud