Home
last modified time | relevance | path

Searched refs:expandedTokens (Results 1 – 13 of 13) sorted by relevance

/external/llvm-project/clang/lib/Tooling/Syntax/
DComputeReplacements.cpp71 assert(Buffer.expandedTokens().begin() <= Expanded.begin()); in rangeOfExpanded()
72 assert(Expanded.end() < Buffer.expandedTokens().end()); in rangeOfExpanded()
102 const syntax::Token *NextOriginal = Buffer.expandedTokens().begin(); in computeReplacements()
124 NextOriginal, Buffer.expandedTokens().drop_back().end())); in computeReplacements()
DBuildTree.cpp369 for (const auto &T : Arena.getTokenBuffer().expandedTokens()) in TreeBuilder()
437 auto Tokens = Arena.getTokenBuffer().expandedTokens(); in finalize()
568 assert(!A.getTokenBuffer().expandedTokens().empty()); in Forest()
569 assert(A.getTokenBuffer().expandedTokens().back().kind() == tok::eof); in Forest()
572 for (const auto &T : A.getTokenBuffer().expandedTokens().drop_back()) { in Forest()
669 : A.getTokenBuffer().expandedTokens().end() - It->first; in str()
DTokens.cpp186 llvm::ArrayRef<syntax::Token> TokenBuffer::expandedTokens(SourceRange R) const { in expandedTokens() function in TokenBuffer
187 return getTokensCovering(expandedTokens(), R, *SourceMgr); in expandedTokens()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DParsedASTTests.cpp235 ASSERT_GT(T.expandedTokens().size(), 2u); in TEST()
237 EXPECT_EQ(T.expandedTokens().front().text(SM), "first_token"); in TEST()
239 EXPECT_EQ(T.expandedTokens().back().kind(), tok::eof); in TEST()
241 EXPECT_EQ(T.expandedTokens().drop_back().back().text(SM), "last_token"); in TEST()
261 ASSERT_GT(T.expandedTokens().size(), 7u); in TEST()
263 EXPECT_EQ(T.expandedTokens().front().text(SM), "inline"); in TEST()
265 EXPECT_EQ(T.expandedTokens().back().kind(), tok::eof); in TEST()
267 EXPECT_EQ(T.expandedTokens().drop_back().back().text(SM), "}"); in TEST()
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DDefineOutline.cpp193 auto Tokens = TokBuf.expandedTokens(PVD->getSourceRange()) in getFunctionSourceCode()
215 TokBuf.spelledForExpanded(TokBuf.expandedTokens(A->getRange())); in getFunctionSourceCode()
237 for (const auto &Tok : TokBuf.expandedTokens(FromRange)) { in getFunctionSourceCode()
320 auto Toks = TokBuf.expandedTokens(CD->getSourceRange()); in getDeletionRange()
DObjCLocalizeStringLiteral.cpp71 auto Toks = TB.spelledForExpanded(TB.expandedTokens(Str->getSourceRange())); in apply()
DAddUsing.cpp184 auto Toks = Inputs.AST->getTokens().expandedTokens(ND->getSourceRange()); in findInsertionPoint()
281 TB.spelledForExpanded(TB.expandedTokens(E.getSourceRange())); in prepare()
/external/llvm-project/clang/unittests/Tooling/Syntax/
DTokensTest.cpp241 return findTokenRange(Query, Buffer.expandedTokens()); in findExpanded()
358 Buffer.expandedTokens(), in TEST_F()
536 EXPECT_THAT(std::vector<syntax::Token>(Buffer.expandedTokens()), in TEST_F()
540 EXPECT_THAT(Buffer.expandedTokens(), in TEST_F()
556 EXPECT_THAT(std::vector<syntax::Token>(Buffer.expandedTokens()), in TEST_F()
754 EXPECT_THAT(Buffer.expandedTokens(R), in TEST_F()
756 EXPECT_THAT(Buffer.expandedTokens(SourceRange()), testing::IsEmpty()); in TEST_F()
/external/llvm-project/clang/include/clang/Tooling/Syntax/
DTokens.h191 llvm::ArrayRef<syntax::Token> expandedTokens() const { in expandedTokens() function
197 llvm::ArrayRef<syntax::Token> expandedTokens(SourceRange R) const;
/external/llvm-project/clang-tools-extra/clangd/
DSelection.cpp557 UnclaimedExpandedTokens(Tokens.expandedTokens()) { in SelectionVisitor()
714 UnclaimedExpandedTokens.erase(TokenBuf.expandedTokens(S))) in claimRange()
DDumpAST.cpp93 auto Spelled = Tokens.spelledForExpanded(Tokens.expandedTokens(SR)); in getRange()
DSourceCode.cpp934 TB.expandedTokens(SM.getMacroArgExpandedLocation(T.location())); in touching()
DXRefs.cpp427 auto ExpandedTokens = TB.expandedTokens( in tokenSpelledAt()