Home
last modified time | relevance | path

Searched refs:getTokens (Results 1 – 25 of 28) sorted by relevance

12

/llvm-project-15.0.7/clang/unittests/Format/
H A DMacroCallReconstructorTest.cpp215 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 DSelectionTests.cpp32 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 DDumpASTTests.cpp149 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 DCollectMacrosTests.cpp91 const auto *Id = syntax::spelledIdentifierTouching(*Loc, AST.getTokens()); in TEST()
H A DFeatureModulesTests.cpp50 SelectionTree::createRight(AST.getASTContext(), AST.getTokens(), 0, 0); in TEST()
H A DPreambleTests.cpp364 auto *MacroTok = AST->getTokens().spelledTokenAt( in TEST()
388 auto *MacroTok = AST->getTokens().spelledTokenAt( in TEST()
H A DSourceCodeTests.cpp367 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 DParsedASTTests.cpp233 const syntax::TokenBuffer &T = AST.getTokens(); in TEST()
259 const syntax::TokenBuffer &T = AST.getTokens(); in TEST()
H A DXRefsTests.cpp1243 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 DFindTargetTests.cpp80 AST.getASTContext(), AST.getTokens(), R.Begin, R.End); in assertNodeAndPrintDecls()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DExpandMacro.cpp95 auto *T = findIdentifierUnderCursor(Inputs.AST->getTokens(), Inputs.Cursor); in prepare()
100 auto Expansion = Inputs.AST->getTokens().expansionStartingAt(T); in prepare()
H A DObjCLocalizeStringLiteral.cpp66 const auto &TB = AST->getTokens(); in apply()
H A DAddUsing.cpp186 auto Toks = Inputs.AST->getTokens().expandedTokens(ND->getSourceRange()); in findInsertionPoint()
237 const auto &TB = Inputs.AST->getTokens(); in prepare()
H A DDefineOutline.cpp433 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 DSemanticSelection.cpp123 AST.getASTContext(), AST.getTokens(), *Offset, *Offset); in getSemanticRanges()
170 syntax::TokenBufferTokenManager TM(AST.getTokens(), AST.getLangOpts(), in getFoldingRanges()
H A DXRefs.cpp191 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 DParsedAST.h106 const syntax::TokenBuffer &getTokens() const { return Tokens; } in getTokens() function
H A DClangdServer.cpp602 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 DFindSymbols.cpp456 if (auto *Tok = AST.getTokens().spelledTokenAt(MacroName)) in possibleMacroContainer()
458 *Tok, SM, AST.getTokens().expansionStartingAt(Tok)); in possibleMacroContainer()
H A DIncludeCleaner.cpp341 &AST.getTokens()); in findReferencedLocations()
H A DInlayHints.cpp196 : Results(Results), AST(AST.getASTContext()), Tokens(AST.getTokens()), in InlayHintVisitor()
/llvm-project-15.0.7/clang/utils/
H A Dtoken-delta.py110 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 DCheck.cpp215 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 DTweakTesting.cpp67 SelectionTree::createEach(AST.getASTContext(), AST.getTokens(), Range.Begin, in applyTweak()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/
H A DRename.cpp147 AST.getASTContext(), AST.getTokens(), Offset, Offset); in locateDeclAt()
704 spelledIdentifierTouching(*Loc, AST.getTokens()); in rename()

12