<div dir="ltr">Hello, <div><br></div><div>I need to remove the definition of a function such as this </div><div><br></div><div>extern "C" void * func_name() { </div><div><br></div><div>} </div><div><br></div><div>If I try, </div><div><br></div><div>bool VisitFunctionDecl(FunctionDecl * f) { </div><div>    Rewriter.RemoveText(f->getSourceRange()) </div><div>} </div><div><br></div><div>it only removes void * func_name() { } leaving a dangling extern "C". How can I get rid of the extern "C" as well? </div><div>  <br></div><div>Thanks, </div></div>