Home
last modified time | relevance | path

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

/external/llvm-project/clang/include/clang/Tooling/Syntax/
DTree.h206 const Leaf *findFirstLeaf() const;
207 Leaf *findFirstLeaf() { in findFirstLeaf() function
208 return const_cast<Leaf *>(const_cast<const Tree *>(this)->findFirstLeaf()); in findFirstLeaf()
/external/llvm-project/clang/lib/Tooling/Syntax/
DTree.cpp312 const syntax::Leaf *syntax::Tree::findFirstLeaf() const { in findFirstLeaf() function in syntax::Tree
316 if (const auto *L = cast<syntax::Tree>(C).findFirstLeaf()) in findFirstLeaf()
/external/llvm-project/clang/unittests/Tooling/Syntax/
DTreeTest.cpp114 ASSERT_TRUE(Tree->findFirstLeaf() != nullptr); in TEST_P()
115 EXPECT_EQ(Tree->findFirstLeaf()->getToken()->kind(), tok::l_paren); in TEST_P()
DTreeTestBase.cpp43 return llvm::makeArrayRef(T->findFirstLeaf()->getToken(), in tokens()