Searched refs:NodeRole (Results 1 – 8 of 8) sorted by relevance
/freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
H A 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 …]
|
H A D | BuildTree.cpp | 423 void markStmtChild(Stmt *Child, NodeRole Role); 426 void markExprChild(Expr *Child, NodeRole Role); 428 void markChildToken(SourceLocation Loc, NodeRole R); 430 void markChildToken(const syntax::Token *T, NodeRole R); 433 void markChild(syntax::Node *N, NodeRole R); 435 void markChild(ASTPtr N, NodeRole R); 437 void markChild(NestedNameSpecifierLoc N, NodeRole R); 559 void setRole(syntax::Node *N, NodeRole R) { in setRole() 560 assert(N->getRole() == NodeRole::Detached); in setRole() 585 void assignRole(ArrayRef<syntax::Token> Range, syntax::NodeRole Role) { in assignRole() [all …]
|
H A D | Tree.cpp | 41 this->setRole(NodeRole::Detached); in Node() 45 return getRole() == NodeRole::Detached; in isDetached() 48 void syntax::Node::setRole(NodeRole NR) { in setRole() 52 void syntax::Tree::appendChildLowLevel(Node *Child, NodeRole Role) { in appendChildLowLevel() 53 assert(Child->getRole() == NodeRole::Detached); in appendChildLowLevel() 54 assert(Role != NodeRole::Detached); in appendChildLowLevel() 64 assert(Child->getRole() != NodeRole::Detached); in appendChildLowLevel() 76 void syntax::Tree::prependChildLowLevel(Node *Child, NodeRole Role) { in prependChildLowLevel() 77 assert(Child->getRole() == NodeRole::Detached); in prependChildLowLevel() 78 assert(Role != NodeRole::Detached); in prependChildLowLevel() [all …]
|
H A D | Synthesis.cpp | 23 syntax::NodeRole R) { in prependChildLowLevel() 27 syntax::NodeRole R) { in appendChildLowLevel() 206 ArrayRef<std::pair<syntax::Node *, syntax::NodeRole>> Children, in createTree() 227 std::vector<std::pair<syntax::Node *, syntax::NodeRole>> Children; in deepCopyExpandingMacros() 237 createTree(A, {{createLeaf(A, TBTM, tok::semi), NodeRole::Unknown}}, in createEmptyStatement()
|
H A D | Mutations.cpp | 30 static void addAfter(syntax::Node *Anchor, syntax::Node *New, NodeRole Role) { in addAfter() 37 assert(Role != NodeRole::Detached); in addAfter()
|
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Syntax/ |
H A D | Tree.h | 50 enum class NodeRole : uint8_t; 71 NodeRole getRole() const { return static_cast<NodeRole>(Role); } in getRole() 119 void setRole(NodeRole NR); 213 const Node *findChild(NodeRole R) const; 214 Node *findChild(NodeRole R) { in findChild() 226 void appendChildLowLevel(Node *Child, NodeRole Role); 228 void prependChildLowLevel(Node *Child, NodeRole Role);
|
H A D | BuildTree.h | 46 ArrayRef<std::pair<syntax::Node *, syntax::NodeRole>> Children,
|
H A D | Nodes.h | 54 enum class NodeRole : uint8_t { enum 110 raw_ostream &operator<<(raw_ostream &OS, NodeRole R);
|