Lines Matching full:rewrite
14 #include "clang/Rewrite/Frontend/ASTConsumers.h"
24 #include "clang/Rewrite/Core/Rewriter.h"
62 Rewriter Rewrite;
107 /* Misc. containers needed for meta-data rewrite. */
202 return; // We can't rewrite the same node twice.
208 if (!Rewrite.ReplaceStmt(Old, New)) {
223 int Size = Rewrite.getRangeSize(SrcRange);
236 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) {
249 if (!Rewrite.InsertText(Loc, Str, InsertAfter) ||
259 if (!Rewrite.ReplaceText(Start, OrigLength, Str) ||
322 // Block specific rewrite rules.
639 Rewrite.setSourceMgr(Context->getSourceManager(), Context->getLangOpts());
651 // #included file. If the former, rewrite it now. If the later, check to see
659 // Look for built-in declarations that we need to refer during the rewrite.
723 // If we have a decl in the main file, see if we should rewrite it.
945 // nothing to rewrite.
1110 // Rewrite arguments
1265 // Because the rewriter doesn't allow us to rewrite rewritten code,
1347 // Because the rewriter doesn't allow us to rewrite rewritten code,
1435 /// RewriteBreakStmt - Rewrite for a break-stmt inside an ObjC2's foreach
1452 /// RewriteContinueStmt - Rewrite for a continue-stmt inside an ObjC2's foreach
1873 // Now rewrite the body...
1882 Rewrite.ReplaceText(startLoc, bodyBuf-startBuf+1, buf);
1899 // Now rewrite the body...
1912 llvm_unreachable("@catch rewrite bug");
2127 // This will defend against trying to rewrite synthesized expressions.
3086 // Now do the actual rewrite.
3106 /// RewriteObjCProtocolExpr - Rewrite a protocol expression into
3157 /// RewriteObjCInternalStruct - Rewrite one internal struct corresponding to
3221 // rewrite the original header
3224 // rewrite the original header *without* disturbing the '{'
3267 } else if (*cursor == '^') { // rewrite block specifier.
3301 // Rewrite implemented methods
3926 // Rewrite the byref variable into BYREFVAR->__forwarding->BYREFVAR
3983 // Need to avoid trying to rewrite synthesized casts.
3986 // Need to avoid trying to rewrite casts contained in macros.
4670 // treatment because we're going to recursively rewrite them.
4683 // Perform a bottom up rewrite of all children.
4700 // Rewrite the block body in place.
4717 std::string Str = Rewrite.getRewrittenText(BE->getSourceRange());
4738 // Before we rewrite it, put the original message expression in a comment.
4787 // a separate type-specifier that we can rewrite.
4797 // Blocks rewrite rules.
4900 // prototype. This enables us to rewrite function declarations and
5034 Rewrite.getRewriteBufferFor(MainFileID)) {
5043 // Rewrite Objective-c meta data*
5186 /// RewriteObjCProtocolMetaData - Rewrite protocols meta-data.
5736 /// RewriteObjCCategoryImplDecl - Rewrite metadata for each category
5847 Rewrite methods metadata for instance or
5925 // Rewrite the base, but without actually doing replaces.