Lines Matching defs:Rewrite
14 #include "clang/Rewrite/ASTConsumers.h"
15 #include "clang/Rewrite/Rewriter.h"
60 Rewriter Rewrite;
106 /* Misc. containers needed for meta-data rewrite. */
214 return; // We can't rewrite the same node twice.
220 if (!Rewrite.ReplaceStmt(Old, New)) {
235 int Size = Rewrite.getRangeSize(SrcRange);
248 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) {
261 if (!Rewrite.InsertText(Loc, Str, InsertAfter) ||
271 if (!Rewrite.ReplaceText(Start, OrigLength, Str) ||
338 // Block specific rewrite rules.
644 Rewrite.setSourceMgr(Context->getSourceManager(), Context->getLangOpts());
656 // #included file. If the former, rewrite it now. If the later, check to see
664 // Look for built-in declarations that we need to refer during the rewrite.
735 // If we have a decl in the main file, see if we should rewrite it.
961 // nothing to rewrite.
1084 // FIXME. We don't rewrite well if '{' is not on same line as 'extern'.
1152 // Rewrite arguments
1324 // Because the rewriter doesn't allow us to rewrite rewritten code,
1411 // Because the rewriter doesn't allow us to rewrite rewritten code,
1506 /// RewriteBreakStmt - Rewrite for a break-stmt inside an ObjC2's foreach
1523 /// RewriteContinueStmt - Rewrite for a continue-stmt inside an ObjC2's foreach
2047 // This will defend against trying to rewrite synthesized expressions.
3421 // Now do the actual rewrite.
3441 /// RewriteObjCProtocolExpr - Rewrite a protocol expression into
3589 /// RewriteObjCInternalStruct - Rewrite one internal struct corresponding to
3646 /// RewriteIvarOffsetSymbols - Rewrite ivar offset symbols of those ivars which
3685 // Rewrite implemented methods
4385 // Rewrite the byref variable into BYREFVAR->__forwarding->BYREFVAR
4442 // Need to avoid trying to rewrite synthesized casts.
4445 // Need to avoid trying to rewrite casts contained in macros.
5171 // treatment because we're going to recursively rewrite them.
5184 // Perform a bottom up rewrite of all children.
5201 // Rewrite the block body in place.
5218 std::string Str = Rewrite.getRewrittenText(BE->getSourceRange());
5252 // Before we rewrite it, put the original message expression in a comment.
5301 // a separate type-specifier that we can rewrite.
5311 // Blocks rewrite rules.
5418 // prototype. This enables us to rewrite function declarations and
5578 Rewrite.getRewriteBufferFor(MainFileID)) {
5587 // Rewrite Objective-c meta data*
6506 /// RewriteObjCProtocolMetaData - Rewrite protocols meta-data.
7000 /// RewriteObjCCategoryImplDecl - Rewrite metadata for each category
7115 // RewriteObjCMethodsMetaData - Rewrite methods metadata for instance or
7200 // Rewrite the base, but without actually doing replaces.