Home
last modified time | relevance | path

Searched refs:findFirstLeaf (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/clang/include/clang/Tooling/Syntax/
H A DTree.h184 const Leaf *findFirstLeaf() const;
185 Leaf *findFirstLeaf() { in findFirstLeaf() function
186 return const_cast<Leaf *>(const_cast<const Tree *>(this)->findFirstLeaf()); in findFirstLeaf()
/llvm-project-15.0.7/clang/lib/Tooling/Syntax/
H A DTree.cpp283 const syntax::Leaf *syntax::Tree::findFirstLeaf() const { in findFirstLeaf() function in syntax::Tree
287 if (const auto *L = cast<syntax::Tree>(C).findFirstLeaf()) in findFirstLeaf()
/llvm-project-15.0.7/clang/unittests/Tooling/Syntax/
H A DTreeTest.cpp114 ASSERT_TRUE(Tree->findFirstLeaf() != nullptr); in TEST_P()
115 EXPECT_EQ(TM->getToken(Tree->findFirstLeaf()->getTokenKey())->kind(), tok::l_paren); in TEST_P()
H A DTreeTestBase.cpp44 return llvm::makeArrayRef(STM.getToken(T->findFirstLeaf()->getTokenKey()), in tokens()