Searched refs:expandedTokens (Results 1 – 13 of 13) sorted by relevance
/external/llvm-project/clang/lib/Tooling/Syntax/ |
D | ComputeReplacements.cpp | 71 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()
|
D | BuildTree.cpp | 369 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()
|
D | Tokens.cpp | 186 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/ |
D | ParsedASTTests.cpp | 235 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/ |
D | DefineOutline.cpp | 193 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()
|
D | ObjCLocalizeStringLiteral.cpp | 71 auto Toks = TB.spelledForExpanded(TB.expandedTokens(Str->getSourceRange())); in apply()
|
D | AddUsing.cpp | 184 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/ |
D | TokensTest.cpp | 241 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/ |
D | Tokens.h | 191 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/ |
D | Selection.cpp | 557 UnclaimedExpandedTokens(Tokens.expandedTokens()) { in SelectionVisitor() 714 UnclaimedExpandedTokens.erase(TokenBuf.expandedTokens(S))) in claimRange()
|
D | DumpAST.cpp | 93 auto Spelled = Tokens.spelledForExpanded(Tokens.expandedTokens(SR)); in getRange()
|
D | SourceCode.cpp | 934 TB.expandedTokens(SM.getMacroArgExpandedLocation(T.location())); in touching()
|
D | XRefs.cpp | 427 auto ExpandedTokens = TB.expandedTokens( in tokenSpelledAt()
|