Skip to content

Commit 7ea6ca4

Browse files
docs: Minor tweaks in TuIndexer header. (#147)
1 parent a5ccaba commit 7ea6ca4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

indexer/Indexer.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ class TuIndexer final {
244244

245245
private:
246246
std::pair<FileLocalSourceRange, clang::FileID>
247-
getTokenExpansionRange(clang::SourceLocation startLoc) const;
247+
getTokenExpansionRange(clang::SourceLocation startExpansionLoc) const;
248248

249249
void saveReference(std::string_view symbol, clang::SourceLocation loc,
250250
int32_t extraRoles = 0);
@@ -264,6 +264,9 @@ class TuIndexer final {
264264
/// Returns a \c PartialDocument reference so that \c scip::SymbolInformation
265265
/// can be added into the document for definitions. Prefer using
266266
/// \c saveDefinition or \c saveReference over this method.
267+
///
268+
/// This method should not be called for occurrences in external files,
269+
/// since SCIP only tracks SymbolInformation values in external code.
267270
PartialDocument &saveOccurrence(std::string_view symbol,
268271
clang::SourceLocation loc,
269272
int32_t allRoles = 0);

0 commit comments

Comments
 (0)