Lines Matching full:rewrite
14 #include "clang/Rewrite/Frontend/ASTConsumers.h"
15 #include "clang/Rewrite/Core/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) ||
341 // Block specific rewrite rules.
658 Rewrite.setSourceMgr(Context->getSourceManager(), Context->getLangOpts());
670 // #included file. If the former, rewrite it now. If the later, check to see
678 // Look for built-in declarations that we need to refer during the rewrite.
749 // If we have a decl in the main file, see if we should rewrite it.
1051 // nothing to rewrite.
1170 // FIXME. We don't rewrite well if '{' is not on same line as 'extern'.
1238 // Rewrite arguments
1406 // Because the rewriter doesn't allow us to rewrite rewritten code,
1493 // Because the rewriter doesn't allow us to rewrite rewritten code,
1588 /// RewriteBreakStmt - Rewrite for a break-stmt inside an ObjC2's foreach
1605 /// RewriteContinueStmt - Rewrite for a continue-stmt inside an ObjC2's foreach
2138 // This will defend against trying to rewrite synthesized expressions.
3597 // Now do the actual rewrite.
3617 /// RewriteObjCProtocolExpr - Rewrite a protocol expression into
3832 /// RewriteObjCInternalStruct - Rewrite one internal struct corresponding to
3887 /// RewriteIvarOffsetSymbols - Rewrite ivar offset symbols of those ivars which
3926 // Rewrite implemented methods
4606 // Rewrite the byref variable into BYREFVAR->__forwarding->BYREFVAR
4663 // Need to avoid trying to rewrite synthesized casts.
4666 // Need to avoid trying to rewrite casts contained in macros.
5392 // treatment because we're going to recursively rewrite them.
5405 // Perform a bottom up rewrite of all children.
5422 // Rewrite the block body in place.
5439 std::string Str = Rewrite.getRewrittenText(BE->getSourceRange());
5473 // Before we rewrite it, put the original message expression in a comment.
5527 // a separate type-specifier that we can rewrite.
5537 // Blocks rewrite rules.
5644 // prototype. This enables us to rewrite function declarations and
5805 Rewrite.getRewriteBufferFor(MainFileID)) {
5814 // Rewrite Objective-c meta data*
6741 /// RewriteObjCProtocolMetaData - Rewrite protocols meta-data.
7235 /// RewriteObjCCategoryImplDecl - Rewrite metadata for each category
7350 // RewriteObjCMethodsMetaData - Rewrite methods metadata for instance or
7435 // Rewrite the base, but without actually doing replaces.