I have a problem inserting LabelDecl
. My goal is to create a goto statement in the program and to do that, first I need to create LabelDecl
and add it to Clang AST.
There is an API to Create Label, but I am not able to get the IdentifierInfo.
static LabelDecl * Create (ASTContext &C, DeclContext *DC, SourceLocation IdentL, IdentifierInfo *II)
My Only problem is getting the IdentifierInfo *II
object. Any idea on this.