clang 22.0.0git
|
Static Public Member Functions | |
static void | addAfter (syntax::Node *Anchor, syntax::Node *New, NodeRole Role) |
Add a new node with a specified role. | |
static void | replace (syntax::Node *Old, syntax::Node *New) |
Replace the node, keeping the role. | |
static void | remove (syntax::Node *N) |
Completely remove the node from its parent. |
Definition at line 19 of file Mutations.cpp.
|
inlinestatic |
Add a new node with a specified role.
Definition at line 22 of file Mutations.cpp.
References clang::syntax::Detached, New, and Role.
|
inlinestatic |
Completely remove the node from its parent.
Definition at line 57 of file Mutations.cpp.
References clang::syntax::Node::assertInvariants(), clang::syntax::Node::canModify(), clang::syntax::Node::getNextSibling(), and clang::syntax::Node::getParent().
Referenced by clang::syntax::removeStatement().
|
inlinestatic |
Replace the node, keeping the role.
Definition at line 40 of file Mutations.cpp.
References clang::syntax::Node::canModify(), clang::syntax::Node::getNextSibling(), clang::syntax::Node::getParent(), and New.
Referenced by clang::syntax::removeStatement().