| /llvm-project-15.0.7/clang/unittests/Format/ |
| H A D | MacroCallReconstructorTest.cpp | 215 Matcher E(Exp.getTokens(), Lex); in TEST_F() 237 Matcher E(Exp2.getTokens(), Lex); in TEST_F() 266 Matcher E(Exp.getTokens(), Lex); in TEST_F() 292 Arg.append(Exp1.getTokens().begin(), Exp1.getTokens().end()); in TEST_F() 349 Arg3.append(Exp2.getTokens().begin(), Exp2.getTokens().end()); in TEST_F() 418 Matcher E(Exp.getTokens(), Lex); in TEST_F() 439 Matcher E(Exp.getTokens(), Lex); in TEST_F() 453 Matcher E(Exp.getTokens(), Lex); in TEST_F() 479 Arg2.append(Exp1.getTokens().begin(), Exp1.getTokens().end()); in TEST_F() 533 Matcher E(Exp.getTokens(), Lex); in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | SelectionTests.cpp | 32 return SelectionTree::createRight(AST.getASTContext(), AST.getTokens(), in makeSelectionTree() 37 AST.getASTContext(), AST.getTokens(), in makeSelectionTree() 42 return SelectionTree::createRight(AST.getASTContext(), AST.getTokens(), 0u, in makeSelectionTree() 733 AST.getASTContext(), AST.getTokens(), Test.point("ambiguous"), in TEST() 747 SelectionTree::createEach(AST.getASTContext(), AST.getTokens(), in TEST() 756 SelectionTree::createEach(AST.getASTContext(), AST.getTokens(), in TEST() 765 SelectionTree::createEach(AST.getASTContext(), AST.getTokens(), in TEST() 775 SelectionTree::createEach(AST.getASTContext(), AST.getTokens(), in TEST() 788 auto ST = SelectionTree::createRight(AST.getASTContext(), AST.getTokens(), in TEST() 793 auto ST = SelectionTree::createRight(AST.getASTContext(), AST.getTokens(), in TEST()
|
| H A D | DumpASTTests.cpp | 149 AST.getTokens(), AST.getASTContext()); in TEST() 158 auto Node = dumpAST(DynTypedNode::create(findDecl(AST, "x")), AST.getTokens(), in TEST() 171 AST.getTokens(), AST.getASTContext()); in TEST() 180 auto Node = dumpAST(DynTypedNode::create(findDecl(AST, "x")), AST.getTokens(), in TEST()
|
| H A D | CollectMacrosTests.cpp | 91 const auto *Id = syntax::spelledIdentifierTouching(*Loc, AST.getTokens()); in TEST()
|
| H A D | FeatureModulesTests.cpp | 50 SelectionTree::createRight(AST.getASTContext(), AST.getTokens(), 0, 0); in TEST()
|
| H A D | PreambleTests.cpp | 364 auto *MacroTok = AST->getTokens().spelledTokenAt( in TEST() 388 auto *MacroTok = AST->getTokens().spelledTokenAt( in TEST()
|
| H A D | SourceCodeTests.cpp | 367 AST->getTokens(), AST->getLangOpts()); in tryWord() 540 const auto *Id = syntax::spelledIdentifierTouching(*CurLoc, AST.getTokens()); in TEST() 554 const auto *Id = syntax::spelledIdentifierTouching(*CurLoc, AST.getTokens()); in TEST()
|
| H A D | ParsedASTTests.cpp | 233 const syntax::TokenBuffer &T = AST.getTokens(); in TEST() 259 const syntax::TokenBuffer &T = AST.getTokens(); in TEST()
|
| H A D | XRefsTests.cpp | 1243 AST.getTokens(), AST.getLangOpts()); in TEST() 1733 AST.getTokens(), AST.getLangOpts()); in TEST() 1738 if (const auto *Tok = findNearbyIdentifier(*Word, AST.getTokens())) in TEST()
|
| H A D | FindTargetTests.cpp | 80 AST.getASTContext(), AST.getTokens(), R.Begin, R.End); in assertNodeAndPrintDecls()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | ExpandMacro.cpp | 95 auto *T = findIdentifierUnderCursor(Inputs.AST->getTokens(), Inputs.Cursor); in prepare() 100 auto Expansion = Inputs.AST->getTokens().expansionStartingAt(T); in prepare()
|
| H A D | ObjCLocalizeStringLiteral.cpp | 66 const auto &TB = AST->getTokens(); in apply()
|
| H A D | AddUsing.cpp | 186 auto Toks = Inputs.AST->getTokens().expandedTokens(ND->getSourceRange()); in findInsertionPoint() 237 const auto &TB = Inputs.AST->getTokens(); in prepare()
|
| H A D | DefineOutline.cpp | 433 Source, InsertionPoint->EnclosingNamespace, Sel.AST->getTokens(), in apply() 451 getDeletionRange(Source, Sel.AST->getTokens()))), in apply()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | SemanticSelection.cpp | 123 AST.getASTContext(), AST.getTokens(), *Offset, *Offset); in getSemanticRanges() 170 syntax::TokenBufferTokenManager TM(AST.getTokens(), AST.getLangOpts(), in getFoldingRanges()
|
| H A D | XRefs.cpp | 191 SelectionTree::createEach(AST.getASTContext(), AST.getTokens(), Offset, in getDeclAtPositionWithRelations() 773 syntax::spelledTokensTouching(*CurLoc, AST.getTokens()); in locateSymbolAt() 805 SpelledWord::touching(*CurLoc, AST.getTokens(), AST.getLangOpts()); in locateSymbolAt() 809 findNearbyIdentifier(*Word, AST.getTokens())) { in locateSymbolAt() 849 const auto *HashTok = AST.getTokens().spelledTokenAt(HashLoc); in getDocumentLinks() 922 const auto &TB = AST.getTokens(); in handleDeclOccurrence() 1258 if (auto Highlight = toHighlight(Loc, AST.getTokens())) in findDocumentHighlights() 1268 SelectionTree::createEach(AST.getASTContext(), AST.getTokens(), Offset, in findDocumentHighlights() 1346 syntax::spelledIdentifierTouching(*CurLoc, AST.getTokens()); in findReferences() 1541 syntax::spelledIdentifierTouching(*CurLoc, AST.getTokens()); in getSymbolInfo() [all …]
|
| H A D | ParsedAST.h | 106 const syntax::TokenBuffer &getTokens() const { return Tokens; } in getTokens() function
|
| H A D | ClangdServer.cpp | 602 AST.AST.getASTContext(), AST.AST.getTokens(), *Begin, *End, in tweakSelection() 964 return CB(dumpAST(Node, Inputs->AST.getTokens(), in getAST() 977 Inputs->AST.getASTContext(), Inputs->AST.getTokens(), Start, End, in getAST() 980 CB(dumpAST(N->ASTNode, Inputs->AST.getTokens(), in getAST()
|
| H A D | FindSymbols.cpp | 456 if (auto *Tok = AST.getTokens().spelledTokenAt(MacroName)) in possibleMacroContainer() 458 *Tok, SM, AST.getTokens().expansionStartingAt(Tok)); in possibleMacroContainer()
|
| H A D | IncludeCleaner.cpp | 341 &AST.getTokens()); in findReferencedLocations()
|
| H A D | InlayHints.cpp | 196 : Results(Results), AST(AST.getASTContext()), Tokens(AST.getTokens()), in InlayHintVisitor()
|
| /llvm-project-15.0.7/clang/utils/ |
| H A D | token-delta.py | 110 def getTokens(path): function 218 tokenLists = [(file, [t.data for t in getTokens(file)])
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/tool/ |
| H A D | Check.cpp | 215 auto SpelledTokens = AST->getTokens().spelledTokens(SM.getMainFileID()); in testLocationFeatures() 236 AST->getTokens(), Start, End); in testLocationFeatures()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/tweaks/ |
| H A D | TweakTesting.cpp | 67 SelectionTree::createEach(AST.getASTContext(), AST.getTokens(), Range.Begin, in applyTweak()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/ |
| H A D | Rename.cpp | 147 AST.getASTContext(), AST.getTokens(), Offset, Offset); in locateDeclAt() 704 spelledIdentifierTouching(*Loc, AST.getTokens()); in rename()
|