Home | History | Annotate | Download | only in Rewrite

Lines Matching full: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).
186 return; // We can't rewrite the same node twice.
192 if (!Rewrite.ReplaceStmt(Old, New)) {
204 int Size = Rewrite.getRangeSize(SrcRange);
217 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) {
230 if (!Rewrite.InsertText(Loc, Str, InsertAfter) ||
240 if (!Rewrite.ReplaceText(Start, OrigLength, Str) ||
370 // Block specific rewrite rules.
584 Rewrite.setSourceMgr(Context->getSourceManager(), Context->getLangOptions());
708 // #included file. If the former, rewrite it now. If the later, check to see
716 // Look for built-in declarations that we need to refer during the rewrite.
756 // If we have a decl in the main file, see if we should rewrite it.
981 // nothing to rewrite.
1136 // Rewrite arguments
1352 // Now do the actual rewrite.
1441 // replacement/rewrite won't work for nested getters (e.g. obj.p.i)
1587 /// RewriteBreakStmt - Rewrite for a break-stmt inside an ObjC2's foreach
1604 /// RewriteContinueStmt - Rewrite for a continue-stmt inside an ObjC2's foreach
2026 // Now rewrite the body...
2035 Rewrite.ReplaceText(startLoc, bodyBuf-startBuf+1, buf);
2052 // Now rewrite the body...
2065 llvm_unreachable("@catch rewrite bug");
2280 // This will defend against trying to rewrite synthesized expressions.
3241 // Now do the actual rewrite.
3261 /// RewriteObjCProtocolExpr - Rewrite a protocol expression into
3312 /// SynthesizeObjCInternalStruct - Rewrite one internal struct corresponding to
3376 // rewrite the original header
3379 // rewrite the original header *without* disturbing the '{'
3422 } else if (*cursor == '^') { // rewrite block specifier.
3444 // RewriteObjCMethodsMetaData - Rewrite methods metadata for instance or
3518 /// RewriteObjCProtocolMetaData - Rewrite protocols meta-data.
3709 /// RewriteObjCCategoryImplDecl - Rewrite metadata for each category
4113 // Rewrite implemented methods
4843 // Rewrite the byref variable into BYREFVAR->__forwarding->BYREFVAR
4906 // Need to avoid trying to rewrite synthesized casts.
4909 // Need to avoid trying to rewrite casts contained in macros.
5584 // The allows the main rewrite loop to associate all ObjCPropertyRefExprs with
5585 // their respective BinaryOperator. Without this knowledge, we'd need to rewrite
5614 // Perform a bottom up rewrite of all children.
5643 // setter messaging. This involvs the RHS too. Do not attempt to rewrite
5661 // Rewrite the block body in place.
5679 std::string Str = Rewrite.getRewrittenText(BE->getSourceRange());
5698 // Because the rewriter doesn't allow us to rewrite rewritten code,
5699 // we need to rewrite the right hand side prior to rewriting the setter.
5708 // Need to rewrite the ivar access expression if need be.
5744 // This implies the Rewrite* routines can no longer delete the original
5761 // Before we rewrite it, put the original message expression in a comment.
5810 // a separate type-specifier that we can rewrite.
5820 // Blocks rewrite rules.
5925 // prototype. This enables us to rewrite function declarations and
6045 Rewrite.getRewriteBufferFor(MainFileID)) {
6054 // Rewrite Objective-c meta data*