Home
last modified time | relevance | path

Searched refs:ReplaceText (Results 1 – 10 of 10) sorted by relevance

/external/clang/unittests/Tooling/
DRewriterTest.cpp21 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/
DRewriter.h137 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);
DRewriteBuffer.h87 void ReplaceText(unsigned OrigOffset, unsigned OrigLength,
/external/clang/lib/Rewrite/
DHTMLRewrite.cpp128 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, "&lt;"); in EscapeText()
155 RB.ReplaceText(FilePos, 1, "&gt;"); in EscapeText()
160 RB.ReplaceText(FilePos, 1, "&amp;"); in EscapeText()
DRewriter.cpp108 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/
DRewriteObjC.cpp228 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 …]
DRewriteModernObjC.cpp279 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 …]
DFixItRewriter.cpp68 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace()
/external/clang/lib/Tooling/Core/
DReplacement.cpp74 bool RewriteSucceeded = !Rewrite.ReplaceText( in apply()
/external/clang/lib/ARCMigrate/
DObjCMT.cpp1764 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace()