Lines Matching defs:Rewrite
13 #include "clang/Rewrite/Frontend/ASTConsumers.h"
25 #include "clang/Rewrite/Core/Rewriter.h"
64 Rewriter Rewrite;
110 /* Misc. containers needed for meta-data rewrite. */
259 return; // We can't rewrite the same node twice.
265 int Size = Rewrite.getRangeSize(SrcRange);
278 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) {
291 if (!Rewrite.InsertText(Loc, Str, InsertAfter) ||
301 if (!Rewrite.ReplaceText(Start, OrigLength, Str) ||
387 // Block specific rewrite rules.
709 Rewrite.setSourceMgr(Context->getSourceManager(), Context->getLangOpts());
721 // #included file. If the former, rewrite it now. If the later, check to see
729 // Look for built-in declarations that we need to refer during the rewrite.
796 // If we have a decl in the main file, see if we should rewrite it.
1107 // nothing to rewrite.
1267 // Rewrite arguments
1423 // Because the rewriter doesn't allow us to rewrite rewritten code,
1510 // Because the rewriter doesn't allow us to rewrite rewritten code,
1605 /// RewriteBreakStmt - Rewrite for a break-stmt inside an ObjC2's foreach
1635 /// RewriteContinueStmt - Rewrite for a continue-stmt inside an ObjC2's foreach
2178 // This will defend against trying to rewrite synthesized expressions.
3568 // Now do the actual rewrite.
3588 /// RewriteObjCProtocolExpr - Rewrite a protocol expression into
3884 /// RewriteObjCInternalStruct - Rewrite one internal struct corresponding to
3961 /// RewriteIvarOffsetSymbols - Rewrite ivar offset symbols of those ivars which
4012 // Rewrite implemented methods
4676 // Rewrite the byref variable into BYREFVAR->__forwarding->BYREFVAR
4730 // Need to avoid trying to rewrite synthesized casts.
4733 // Need to avoid trying to rewrite casts contained in macros.
5450 // treatment because we're going to recursively rewrite them.
5465 // Perform a bottom up rewrite of all children.
5481 // Rewrite the block body in place.
5498 std::string Str = Rewrite.getRewrittenText(BE->getSourceRange());
5532 // Before we rewrite it, put the original message expression in a comment.
5586 // a separate type-specifier that we can rewrite.
5596 // Blocks rewrite rules.
5701 // prototype. This enables us to rewrite function declarations and
5873 Rewrite.getRewriteBufferFor(MainFileID)) {
5882 // Rewrite Objective-c meta data*
6849 /// RewriteObjCProtocolMetaData - Rewrite protocols meta-data.
7272 /// RewriteObjCCategoryImplDecl - Rewrite metadata for each category
7371 // RewriteObjCMethodsMetaData - Rewrite methods metadata for instance or
7456 // Rewrite the base, but without actually doing replaces.