Lines Matching full:rewrite
14 #include "clang/Rewrite/Frontend/ASTConsumers.h"
25 #include "clang/Rewrite/Core/Rewriter.h"
63 Rewriter Rewrite;
109 /* Misc. containers needed for meta-data rewrite. */
239 return; // We can't rewrite the same node twice.
245 if (!Rewrite.ReplaceStmt(Old, New)) {
260 int Size = Rewrite.getRangeSize(SrcRange);
273 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) {
286 if (!Rewrite.InsertText(Loc, Str, InsertAfter) ||
296 if (!Rewrite.ReplaceText(Start, OrigLength, Str) ||
383 // Block specific rewrite rules.
702 Rewrite.setSourceMgr(Context->getSourceManager(), Context->getLangOpts());
714 // #included file. If the former, rewrite it now. If the later, check to see
722 // Look for built-in declarations that we need to refer during the rewrite.
793 // If we have a decl in the main file, see if we should rewrite it.
1103 // nothing to rewrite.
1222 // FIXME. We don't rewrite well if '{' is not on same line as 'extern'.
1290 // Rewrite arguments
1458 // Because the rewriter doesn't allow us to rewrite rewritten code,
1545 // Because the rewriter doesn't allow us to rewrite rewritten code,
1640 /// RewriteBreakStmt - Rewrite for a break-stmt inside an ObjC2's foreach
1670 /// RewriteContinueStmt - Rewrite for a continue-stmt inside an ObjC2's foreach
2221 // This will defend against trying to rewrite synthesized expressions.
3696 // Now do the actual rewrite.
3716 /// RewriteObjCProtocolExpr - Rewrite a protocol expression into
4051 /// RewriteObjCInternalStruct - Rewrite one internal struct corresponding to
4128 /// RewriteIvarOffsetSymbols - Rewrite ivar offset symbols of those ivars which
4181 // Rewrite implemented methods
4864 // Rewrite the byref variable into BYREFVAR->__forwarding->BYREFVAR
4921 // Need to avoid trying to rewrite synthesized casts.
4924 // Need to avoid trying to rewrite casts contained in macros.
5650 // treatment because we're going to recursively rewrite them.
5665 // Perform a bottom up rewrite of all children.
5682 // Rewrite the block body in place.
5699 std::string Str = Rewrite.getRewrittenText(BE->getSourceRange());
5733 // Before we rewrite it, put the original message expression in a comment.
5787 // a separate type-specifier that we can rewrite.
5797 // Blocks rewrite rules.
5904 // prototype. This enables us to rewrite function declarations and
6077 Rewrite.getRewriteBufferFor(MainFileID)) {
6086 // Rewrite Objective-c meta data*
7043 /// RewriteObjCProtocolMetaData - Rewrite protocols meta-data.
7537 /// RewriteObjCCategoryImplDecl - Rewrite metadata for each category
7649 // RewriteObjCMethodsMetaData - Rewrite methods metadata for instance or
7734 // Rewrite the base, but without actually doing replaces.