Home | History | Annotate | Download | only in Rewrite

Lines Matching refs:Rewrite

14 #include "clang/Rewrite/ASTConsumers.h"
15 #include "clang/Rewrite/Rewriter.h"
57 Rewriter Rewrite;
144 // This allows us to rewrite chained getters (e.g. o.a.b.c).
181 return; // We can't rewrite the same node twice.
187 if (!Rewrite.ReplaceStmt(Old, New)) {
199 int Size = Rewrite.getRangeSize(SrcRange);
212 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) {
225 if (!Rewrite.InsertText(Loc, Str, InsertAfter) ||
235 if (!Rewrite.ReplaceText(Start, OrigLength, Str) ||
361 // Block specific rewrite rules.
566 Rewrite.setSourceMgr(Context->getSourceManager(), Context->getLangOptions());
690 // #included file. If the former, rewrite it now. If the later, check to see
698 // Look for built-in declarations that we need to refer during the rewrite.
723 // If we have a decl in the main file, see if we should rewrite it.
930 // nothing to rewrite.
1085 // Rewrite arguments
1303 // Now do the actual rewrite.
1392 // replacement/rewrite won't work for nested getters (e.g. obj.p.i)
1538 /// RewriteBreakStmt - Rewrite for a break-stmt inside an ObjC2's foreach
1555 /// RewriteContinueStmt - Rewrite for a continue-stmt inside an ObjC2's foreach
1971 // Now rewrite the body...
1980 Rewrite.ReplaceText(startLoc, bodyBuf-startBuf+1, buf);
1997 // Now rewrite the body...
2010 assert(false && "@catch rewrite bug");
2225 // This will defend against trying to rewrite synthesized expressions.
3152 // Now do the actual rewrite.
3172 /// RewriteObjCProtocolExpr - Rewrite a protocol expression into
3223 /// SynthesizeObjCInternalStruct - Rewrite one internal struct corresponding to
3287 // rewrite the original header
3290 // rewrite the original header *without* disturbing the '{'
3333 } else if (*cursor == '^') { // rewrite block specifier.
3355 // RewriteObjCMethodsMetaData - Rewrite methods metadata for instance or
3429 /// RewriteObjCProtocolMetaData - Rewrite protocols meta-data.
3620 /// RewriteObjCCategoryImplDecl - Rewrite metadata for each category
4024 // Rewrite implemented methods
4748 // Rewrite the byref variable into BYREFVAR->__forwarding->BYREFVAR
4811 // Need to avoid trying to rewrite synthesized casts.
4814 // Need to avoid trying to rewrite casts contained in macros.
5489 // The allows the main rewrite loop to associate all ObjCPropertyRefExprs with
5490 // their respective BinaryOperator. Without this knowledge, we'd need to rewrite
5519 // Perform a bottom up rewrite of all children.
5548 // setter messaging. This involvs the RHS too. Do not attempt to rewrite
5566 // Rewrite the block body in place.
5576 std::string Str = Rewrite.ConvertToString(BE->getBody());
5595 // Because the rewriter doesn't allow us to rewrite rewritten code,
5596 // we need to rewrite the right hand side prior to rewriting the setter.
5605 // Need to rewrite the ivar access expression if need be.
5641 // This implies the Rewrite* routines can no longer delete the original
5658 // Before we rewrite it, put the original message expression in a comment.
5707 // a separate type-specifier that we can rewrite.
5717 // Blocks rewrite rules.
5822 // prototype. This enables us to rewrite function declarations and
5942 Rewrite.getRewriteBufferFor(MainFileID)) {
5951 // Rewrite Objective-c meta data*