/external/clang/unittests/Tooling/ |
D | RewriterTest.cpp | 21 Context.Rewrite.ReplaceText(Context.getLocation(ID, 2, 1), 5, "replaced"); in TEST() 30 Context.Rewrite.ReplaceText(Context.getLocation(FailingID, 1, 2), 1, "other"); in TEST() 33 Context.Rewrite.ReplaceText(Context.getLocation(WorkingID, 2, 1), 5, in TEST()
|
/external/clang/include/clang/Rewrite/Core/ |
D | Rewriter.h | 137 bool ReplaceText(SourceLocation Start, unsigned OrigLength, 143 bool ReplaceText(SourceRange range, StringRef NewStr) { in ReplaceText() function 144 return ReplaceText(range.getBegin(), getRangeSize(range), NewStr); in ReplaceText() 150 bool ReplaceText(SourceRange range, SourceRange replacementRange);
|
D | RewriteBuffer.h | 87 void ReplaceText(unsigned OrigOffset, unsigned OrigLength,
|
/external/clang/lib/Rewrite/ |
D | HTMLRewrite.cpp | 128 RB.ReplaceText(FilePos, 1, " "); in EscapeText() 132 RB.ReplaceText(FilePos, 1, "<hr>"); in EscapeText() 141 RB.ReplaceText(FilePos, 1, in EscapeText() 145 RB.ReplaceText(FilePos, 1, StringRef(" ", NumSpaces)); in EscapeText() 150 RB.ReplaceText(FilePos, 1, "<"); in EscapeText() 155 RB.ReplaceText(FilePos, 1, ">"); in EscapeText() 160 RB.ReplaceText(FilePos, 1, "&"); in EscapeText()
|
D | Rewriter.cpp | 108 void RewriteBuffer::ReplaceText(unsigned OrigOffset, unsigned OrigLength, in ReplaceText() function in RewriteBuffer 303 bool Rewriter::ReplaceText(SourceLocation Start, unsigned OrigLength, in ReplaceText() function in Rewriter 309 getEditBuffer(StartFileID).ReplaceText(StartOffs, OrigLength, NewStr); in ReplaceText() 313 bool Rewriter::ReplaceText(SourceRange range, SourceRange replacementRange) { in ReplaceText() function in Rewriter 324 return ReplaceText(start, origLength, MB.substr(newOffs, newLength)); in ReplaceText()
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteObjC.cpp | 228 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) { in ReplaceStmtWithRange() 248 void ReplaceText(SourceLocation Start, unsigned OrigLength, in ReplaceText() function in __anon424ac9480111::RewriteObjC 251 if (!Rewrite.ReplaceText(Start, OrigLength, Str) || in ReplaceText() 749 ReplaceText(ImportLoc, ImportLen, "include"); in RewriteInclude() 907 ReplaceText(startLoc, semiPtr-startBuf+1, typedefString); in RewriteForwardClassEpilogue() 953 ReplaceText(LocEnd, 1, ";\n#endif\n"); in RewriteMethodDeclaration() 962 ReplaceText(Loc, 0, "// "); in RewriteProperty() 970 ReplaceText(LocStart, 0, "// "); in RewriteCategoryDecl() 980 ReplaceText(CatDecl->getAtEndRange().getBegin(), in RewriteCategoryDecl() 989 ReplaceText(LocStart, 0, "// "); in RewriteProtocolDecl() [all …]
|
D | RewriteModernObjC.cpp | 279 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) { in ReplaceStmtWithRange() 299 void ReplaceText(SourceLocation Start, unsigned OrigLength, in ReplaceText() function in __anonf9e3580d0111::RewriteModernObjC 302 if (!Rewrite.ReplaceText(Start, OrigLength, Str) || in ReplaceText() 830 ReplaceText(ImportLoc, ImportLen, "include"); in RewriteInclude() 1075 ReplaceText(startLoc, semiPtr-startBuf+1, typedefString); in RewriteForwardClassEpilogue() 1125 ReplaceText(LocEnd, 1, ";\n#endif\n"); in RewriteMethodDeclaration() 1134 ReplaceText(Loc, 0, "// "); in RewriteProperty() 1143 ReplaceText(LocStart, 1, "/** "); in RewriteCategoryDecl() 1144 ReplaceText(CatDecl->getIvarRBraceLoc(), 1, "**/ "); in RewriteCategoryDecl() 1147 ReplaceText(LocStart, 0, "// "); in RewriteCategoryDecl() [all …]
|
D | FixItRewriter.cpp | 68 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace()
|
/external/clang/lib/Tooling/Core/ |
D | Replacement.cpp | 74 bool RewriteSucceeded = !Rewrite.ReplaceText( in apply()
|
/external/clang/lib/ARCMigrate/ |
D | ObjCMT.cpp | 1764 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace()
|