ΒΆvoid removeStatement(
    syntax::Arena& A,
    clang::syntax::TokenBufferTokenManager& TBTM,
    syntax::Statement* S)

Description

Removes a statement or replaces it with an empty statement where one is required syntactically. E.g., in the following example: if (cond) { foo(); } else bar(); One can remove `foo();` completely and to remove `bar();` we would need to replace it with an empty statement. EXPECTS: S->canModify() == true

Declared at: clang/include/clang/Tooling/Syntax/Mutations.h:33

Parameters

syntax::Arena& A
clang::syntax::TokenBufferTokenManager& TBTM
syntax::Statement* S