clang  12.0.0git
Static Public Member Functions | List of all members
clang::syntax::MutationsImpl Class Reference

Static Public Member Functions

static void addAfter (syntax::Node *Anchor, syntax::Node *New, NodeRole Role)
 Add a new node with a specified role. More...
 
static void replace (syntax::Node *Old, syntax::Node *New)
 Replace the node, keeping the role. More...
 
static void remove (syntax::Node *N)
 Completely remove the node from its parent. More...
 

Detailed Description

Definition at line 28 of file Mutations.cpp.

Member Function Documentation

◆ addAfter()

static void clang::syntax::MutationsImpl::addAfter ( syntax::Node Anchor,
syntax::Node New,
NodeRole  Role 
)
inlinestatic

Add a new node with a specified role.

Definition at line 31 of file Mutations.cpp.

References clang::syntax::Detached, clang::syntax::Node::getNextSibling(), clang::syntax::Node::getParent(), clang::syntax::Node::isDetached(), and P.

◆ remove()

static void clang::syntax::MutationsImpl::remove ( syntax::Node N)
inlinestatic

Completely remove the node from its parent.

Definition at line 66 of file Mutations.cpp.

References P.

◆ replace()

static void clang::syntax::MutationsImpl::replace ( syntax::Node Old,
syntax::Node New 
)
inlinestatic

The documentation for this class was generated from the following file: