Home | History | Annotate | Download | only in Rewrite

Lines Matching defs:Rewrite

13 #include "clang/Rewrite/Frontend/ASTConsumers.h"
24 #include "clang/Rewrite/Core/Rewriter.h"
63 Rewriter Rewrite;
108 /* Misc. containers needed for meta-data rewrite. */
210 return; // We can't rewrite the same node twice.
216 int Size = Rewrite.getRangeSize(SrcRange);
229 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) {
242 if (!Rewrite.InsertText(Loc, Str, InsertAfter) ||
252 if (!Rewrite.ReplaceText(Start, OrigLength, Str) ||
315 // Block specific rewrite rules.
638 Rewrite.setSourceMgr(Context->getSourceManager(), Context->getLangOpts());
650 // #included file. If the former, rewrite it now. If the later, check to see
658 // Look for built-in declarations that we need to refer during the rewrite.
722 // If we have a decl in the main file, see if we should rewrite it.
948 // nothing to rewrite.
1101 // Rewrite arguments
1244 // Because the rewriter doesn't allow us to rewrite rewritten code,
1326 // Because the rewriter doesn't allow us to rewrite rewritten code,
1414 /// RewriteBreakStmt - Rewrite for a break-stmt inside an ObjC2's foreach
1431 /// RewriteContinueStmt - Rewrite for a continue-stmt inside an ObjC2's foreach
1848 // Now rewrite the body...
1857 Rewrite.ReplaceText(startLoc, bodyBuf-startBuf+1, buf);
1874 // Now rewrite the body...
1887 llvm_unreachable("@catch rewrite bug");
2096 // This will defend against trying to rewrite synthesized expressions.
3025 // Now do the actual rewrite.
3045 /// RewriteObjCProtocolExpr - Rewrite a protocol expression into
3096 /// RewriteObjCInternalStruct - Rewrite one internal struct corresponding to
3160 // rewrite the original header
3163 // rewrite the original header *without* disturbing the '{'
3206 } else if (*cursor == '^') { // rewrite block specifier.
3239 // Rewrite implemented methods
3845 // Rewrite the byref variable into BYREFVAR->__forwarding->BYREFVAR
3900 // Need to avoid trying to rewrite synthesized casts.
3903 // Need to avoid trying to rewrite casts contained in macros.
4576 // treatment because we're going to recursively rewrite them.
4589 // Perform a bottom up rewrite of all children.
4605 // Rewrite the block body in place.
4622 std::string Str = Rewrite.getRewrittenText(BE->getSourceRange());
4643 // Before we rewrite it, put the original message expression in a comment.
4692 // a separate type-specifier that we can rewrite.
4702 // Blocks rewrite rules.
4801 // prototype. This enables us to rewrite function declarations and
4934 Rewrite.getRewriteBufferFor(MainFileID)) {
4943 // Rewrite Objective-c meta data*
5086 /// RewriteObjCProtocolMetaData - Rewrite protocols meta-data.
5626 /// RewriteObjCCategoryImplDecl - Rewrite metadata for each category
5732 // RewriteObjCMethodsMetaData - Rewrite methods metadata for instance or
5810 // Rewrite the base, but without actually doing replaces.