Home
last modified time | relevance | path

Searched refs:SpelledTokens (Results 1 – 6 of 6) sorted by relevance

/external/llvm-project/clang/lib/Tooling/Syntax/
DTokens.cpp216 return {&File.SpelledTokens[ExpandedIndex - File.BeginExpanded], in spelledForExpandedToken()
223 return {&File.SpelledTokens[It->BeginSpelled], /*Mapping=*/&*It}; in spelledForExpandedToken()
228 &File.SpelledTokens[It->EndSpelled + (ExpandedIndex - It->EndExpanded)], in spelledForExpandedToken()
235 assert(F.SpelledTokens.data() <= Spelled); in mappingStartingBeforeSpelled()
236 unsigned SpelledI = Spelled - F.SpelledTokens.data(); in mappingStartingBeforeSpelled()
237 assert(SpelledI < F.SpelledTokens.size()); in mappingStartingBeforeSpelled()
255 unsigned SpelledFrontI = &Spelled.front() - File.SpelledTokens.data(); in expandedForSpelled()
256 assert(SpelledFrontI < File.SpelledTokens.size()); in expandedForSpelled()
278 unsigned SpelledBackI = &Spelled.back() - File.SpelledTokens.data(); in expandedForSpelled()
309 return It->second.SpelledTokens; in spelledTokens()
[all …]
/external/llvm-project/clang-tools-extra/clangd/
DSelection.cpp242 SpelledTokens.emplace_back(); in SelectionTester()
243 Tok &S = SpelledTokens.back(); in SelectionTester()
256 if (SpelledTokens.empty()) in test()
277 if (SpelledTokens.empty()) in mayHit()
282 if (E.second < SpelledTokens.front().Offset || in mayHit()
283 B.second > SpelledTokens.back().Offset) in mayHit()
347 if (End < SpelledTokens.front().Offset || in testTokenRange()
348 Begin > SpelledTokens.back().Offset) in testTokenRange()
353 SpelledTokens, [&](const Tok &T) { return T.Offset < Begin; }); in testTokenRange()
355 B, SpelledTokens.end(), [&](const Tok &T) { return T.Offset <= End; }); in testTokenRange()
[all …]
DXRefs.cpp625 auto SpelledTokens = TB.spelledTokens(File); in findNearbyIdentifier() local
627 auto *I = llvm::partition_point(SpelledTokens, [&](const syntax::Token &T) { in findNearbyIdentifier()
632 for (const syntax::Token &Tok : llvm::makeArrayRef(I, SpelledTokens.end())) in findNearbyIdentifier()
637 llvm::reverse(llvm::makeArrayRef(SpelledTokens.begin(), I))) in findNearbyIdentifier()
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DAddUsing.cpp280 auto SpelledTokens = in prepare() local
282 if (!SpelledTokens) in prepare()
284 auto SpelledRange = syntax::Token::range(SM, SpelledTokens->front(), in prepare()
285 SpelledTokens->back()); in prepare()
/external/llvm-project/clang-tools-extra/clangd/tool/
DCheck.cpp193 auto SpelledTokens = in testLocationFeatures() local
195 for (const auto &Tok : SpelledTokens) { in testLocationFeatures()
/external/llvm-project/clang/include/clang/Tooling/Syntax/
DTokens.h338 std::vector<syntax::Token> SpelledTokens; member