Searched refs:NodeRole (Results 1 – 11 of 11) sorted by relevance
/external/llvm-project/clang/lib/Tooling/Syntax/ |
D | Nodes.cpp | 23 raw_ostream &syntax::operator<<(raw_ostream &OS, NodeRole R) { in operator <<() 25 case syntax::NodeRole::Detached: in operator <<() 27 case syntax::NodeRole::Unknown: in operator <<() 29 case syntax::NodeRole::OpenParen: in operator <<() 31 case syntax::NodeRole::CloseParen: in operator <<() 33 case syntax::NodeRole::IntroducerKeyword: in operator <<() 35 case syntax::NodeRole::LiteralToken: in operator <<() 37 case syntax::NodeRole::ArrowToken: in operator <<() 39 case syntax::NodeRole::ExternKeyword: in operator <<() 41 case syntax::NodeRole::TemplateKeyword: in operator <<() [all …]
|
D | BuildTree.cpp | 419 void markStmtChild(Stmt *Child, NodeRole Role); 422 void markExprChild(Expr *Child, NodeRole Role); 424 void markChildToken(SourceLocation Loc, NodeRole R); 426 void markChildToken(const syntax::Token *T, NodeRole R); 429 void markChild(syntax::Node *N, NodeRole R); 431 void markChild(ASTPtr N, NodeRole R); 433 void markChild(NestedNameSpecifierLoc N, NodeRole R); 555 void setRole(syntax::Node *N, NodeRole R) { in setRole() 556 assert(N->getRole() == NodeRole::Detached); in setRole() 580 void assignRole(ArrayRef<syntax::Token> Range, syntax::NodeRole Role) { in assignRole() [all …]
|
D | Tree.cpp | 59 this->setRole(NodeRole::Detached); in Node() 63 return getRole() == NodeRole::Detached; in isDetached() 66 void syntax::Node::setRole(NodeRole NR) { in setRole() 70 void syntax::Tree::appendChildLowLevel(Node *Child, NodeRole Role) { in appendChildLowLevel() 71 assert(Child->getRole() == NodeRole::Detached); in appendChildLowLevel() 72 assert(Role != NodeRole::Detached); in appendChildLowLevel() 82 assert(Child->getRole() != NodeRole::Detached); in appendChildLowLevel() 94 void syntax::Tree::prependChildLowLevel(Node *Child, NodeRole Role) { in prependChildLowLevel() 95 assert(Child->getRole() == NodeRole::Detached); in prependChildLowLevel() 96 assert(Role != NodeRole::Detached); in prependChildLowLevel() [all …]
|
D | Synthesis.cpp | 21 syntax::NodeRole R) { in prependChildLowLevel() 25 syntax::NodeRole R) { in appendChildLowLevel() 199 ArrayRef<std::pair<syntax::Node *, syntax::NodeRole>> Children, in createTree() 219 std::vector<std::pair<syntax::Node *, syntax::NodeRole>> Children; in deepCopyExpandingMacros() 229 createTree(A, {{createLeaf(A, tok::semi), NodeRole::Unknown}}, in createEmptyStatement()
|
D | Mutations.cpp | 31 static void addAfter(syntax::Node *Anchor, syntax::Node *New, NodeRole Role) { in addAfter() 38 assert(Role != NodeRole::Detached); in addAfter()
|
/external/llvm-project/clang/unittests/Tooling/Syntax/ |
D | TreeTest.cpp | 26 std::vector<std::pair<Node *, NodeRole>> ChildrenWithRoles; in createTree() 30 deepCopyExpandingMacros(*Arena, Child), NodeRole::Unknown)); in createTree() 135 {{Children[0], NodeRole::LeftHandSide}, in TEST_F() 136 {Children[1], NodeRole::OperatorToken}, in TEST_F() 137 {Children[2], NodeRole::RightHandSide}}, in TEST_F() 142 EXPECT_THAT(Range, ElementsAre(role(NodeRole::LeftHandSide), in TEST_F() 143 role(NodeRole::OperatorToken), in TEST_F() 144 role(NodeRole::RightHandSide))); in TEST_F() 147 EXPECT_THAT(ConstRange, ElementsAre(role(NodeRole::LeftHandSide), in TEST_F() 148 role(NodeRole::OperatorToken), in TEST_F() [all …]
|
D | SynthesisTest.cpp | 126 {{LeafLParen, NodeRole::LeftHandSide}, in TEST_P() 127 {LeafRParen, NodeRole::RightHandSide}}, in TEST_P() 141 auto *Int1 = createTree(*Arena, {{Leaf1, NodeRole::LiteralToken}}, in TEST_P() 147 auto *Int2 = createTree(*Arena, {{Leaf2, NodeRole::LiteralToken}}, in TEST_P() 151 {{Int1, NodeRole::LeftHandSide}, in TEST_P() 152 {LeafPlus, NodeRole::OperatorToken}, in TEST_P() 153 {Int2, NodeRole::RightHandSide}}, in TEST_P() 172 {{LeafContinue, NodeRole::LiteralToken}, in TEST_P() 173 {LeafSemiColon, NodeRole::Unknown}}, in TEST_P()
|
/external/llvm-project/clang/include/clang/Tooling/Syntax/ |
D | Tree.h | 76 enum class NodeRole : uint8_t; 97 NodeRole getRole() const { return static_cast<NodeRole>(Role); } in getRole() 145 void setRole(NodeRole NR); 235 const Node *findChild(NodeRole R) const; 236 Node *findChild(NodeRole R) { in findChild() 248 void appendChildLowLevel(Node *Child, NodeRole Role); 250 void prependChildLowLevel(Node *Child, NodeRole Role);
|
D | BuildTree.h | 43 ArrayRef<std::pair<syntax::Node *, syntax::NodeRole>> Children,
|
D | Nodes.h | 59 enum class NodeRole : uint8_t { enum 115 raw_ostream &operator<<(raw_ostream &OS, NodeRole R);
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | SemanticSelection.cpp | 61 Stmt->findChild(syntax::NodeRole::OpenParen)); in extractFoldingRange() 66 Stmt->findChild(syntax::NodeRole::CloseParen)); in extractFoldingRange()
|