Home | History | Annotate | Download | only in Rewrite

Lines Matching refs:Rewrite

14 #include "clang/Rewrite/ASTConsumers.h"
15 #include "clang/Rewrite/Rewriter.h"
60 Rewriter Rewrite;
105 /* Misc. containers needed for meta-data rewrite. */
200 return; // We can't rewrite the same node twice.
206 if (!Rewrite.ReplaceStmt(Old, New)) {
221 int Size = Rewrite.getRangeSize(SrcRange);
234 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) {
247 if (!Rewrite.InsertText(Loc, Str, InsertAfter) ||
257 if (!Rewrite.ReplaceText(Start, OrigLength, Str) ||
320 // Block specific rewrite rules.
633 Rewrite.setSourceMgr(Context->getSourceManager(), Context->getLangOpts());
645 // #included file. If the former, rewrite it now. If the later, check to see
653 // Look for built-in declarations that we need to refer during the rewrite.
717 // If we have a decl in the main file, see if we should rewrite it.
940 // nothing to rewrite.
1105 // Rewrite arguments
1260 // Because the rewriter doesn't allow us to rewrite rewritten code,
1342 // Because the rewriter doesn't allow us to rewrite rewritten code,
1430 /// RewriteBreakStmt - Rewrite for a break-stmt inside an ObjC2's foreach
1447 /// RewriteContinueStmt - Rewrite for a continue-stmt inside an ObjC2's foreach
1869 // Now rewrite the body...
1878 Rewrite.ReplaceText(startLoc, bodyBuf-startBuf+1, buf);
1895 // Now rewrite the body...
1908 llvm_unreachable("@catch rewrite bug");
2123 // This will defend against trying to rewrite synthesized expressions.
3087 // Now do the actual rewrite.
3107 /// RewriteObjCProtocolExpr - Rewrite a protocol expression into
3158 /// RewriteObjCInternalStruct - Rewrite one internal struct corresponding to
3222 // rewrite the original header
3225 // rewrite the original header *without* disturbing the '{'
3268 } else if (*cursor == '^') { // rewrite block specifier.
3302 // Rewrite implemented methods
3929 // Rewrite the byref variable into BYREFVAR->__forwarding->BYREFVAR
3986 // Need to avoid trying to rewrite synthesized casts.
3989 // Need to avoid trying to rewrite casts contained in macros.
4673 // treatment because we're going to recursively rewrite them.
4686 // Perform a bottom up rewrite of all children.
4703 // Rewrite the block body in place.
4720 std::string Str = Rewrite.getRewrittenText(BE->getSourceRange());
4741 // Before we rewrite it, put the original message expression in a comment.
4790 // a separate type-specifier that we can rewrite.
4800 // Blocks rewrite rules.
4903 // prototype. This enables us to rewrite function declarations and
5037 Rewrite.getRewriteBufferFor(MainFileID)) {
5046 // Rewrite Objective-c meta data*
5189 /// RewriteObjCProtocolMetaData - Rewrite protocols meta-data.
5739 /// RewriteObjCCategoryImplDecl - Rewrite metadata for each category
5853 // RewriteObjCMethodsMetaData - Rewrite methods metadata for instance or
5931 // Rewrite the base, but without actually doing replaces.