Home | History | Annotate | Download | only in Frontend

Lines Matching defs:Rewrite

14 #include "clang/Rewrite/Frontend/ASTConsumers.h"
25 #include "clang/Rewrite/Core/Rewriter.h"
62 Rewriter Rewrite;
108 /* Misc. containers needed for meta-data rewrite. */
253 return; // We can't rewrite the same node twice.
259 if (!Rewrite.ReplaceStmt(Old, New)) {
275 int Size = Rewrite.getRangeSize(SrcRange);
288 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) {
301 if (!Rewrite.InsertText(Loc, Str, InsertAfter) ||
311 if (!Rewrite.ReplaceText(Start, OrigLength, Str) ||
398 // Block specific rewrite rules.
723 Rewrite.setSourceMgr(Context->getSourceManager(), Context->getLangOpts());
735 // #included file. If the former, rewrite it now. If the later, check to see
743 // Look for built-in declarations that we need to refer during the rewrite.
814 // If we have a decl in the main file, see if we should rewrite it.
1128 // nothing to rewrite.
1236 // FIXME. We don't rewrite well if '{' is not on same line as 'extern'.
1304 // Rewrite arguments
1454 // Because the rewriter doesn't allow us to rewrite rewritten code,
1541 // Because the rewriter doesn't allow us to rewrite rewritten code,
1636 /// RewriteBreakStmt - Rewrite for a break-stmt inside an ObjC2's foreach
1666 /// RewriteContinueStmt - Rewrite for a continue-stmt inside an ObjC2's foreach
2210 // This will defend against trying to rewrite synthesized expressions.
3635 // Now do the actual rewrite.
3655 /// RewriteObjCProtocolExpr - Rewrite a protocol expression into
3983 /// RewriteObjCInternalStruct - Rewrite one internal struct corresponding to
4060 /// RewriteIvarOffsetSymbols - Rewrite ivar offset symbols of those ivars which
4113 // Rewrite implemented methods
4794 // Rewrite the byref variable into BYREFVAR->__forwarding->BYREFVAR
4851 // Need to avoid trying to rewrite synthesized casts.
4854 // Need to avoid trying to rewrite casts contained in macros.
5577 // treatment because we're going to recursively rewrite them.
5592 // Perform a bottom up rewrite of all children.
5609 // Rewrite the block body in place.
5626 std::string Str = Rewrite.getRewrittenText(BE->getSourceRange());
5660 // Before we rewrite it, put the original message expression in a comment.
5714 // a separate type-specifier that we can rewrite.
5724 // Blocks rewrite rules.
5829 // prototype. This enables us to rewrite function declarations and
6002 Rewrite.getRewriteBufferFor(MainFileID)) {
6011 // Rewrite Objective-c meta data*
6977 /// RewriteObjCProtocolMetaData - Rewrite protocols meta-data.
7447 /// RewriteObjCCategoryImplDecl - Rewrite metadata for each category
7546 // RewriteObjCMethodsMetaData - Rewrite methods metadata for instance or
7631 // Rewrite the base, but without actually doing replaces.