Searched refs:ReplaceText (Results 1 - 9 of 9) sorted by relevance

/external/clang/unittests/Tooling/
H A DRewriterTest.cpp18 Context.Rewrite.ReplaceText(Context.getLocation(ID, 2, 1), 5, "replaced");
27 Context.Rewrite.ReplaceText(Context.getLocation(FailingID, 1, 2), 1, "other");
30 Context.Rewrite.ReplaceText(Context.getLocation(WorkingID, 2, 1), 5,
/external/clang/include/clang/Rewrite/Core/
H A DRewriter.h84 /// ReplaceText - This method replaces a range of characters in the input
87 void ReplaceText(unsigned OrigOffset, unsigned OrigLength,
227 /// ReplaceText - This method replaces a range of characters in the input
230 bool ReplaceText(SourceLocation Start, unsigned OrigLength,
233 /// ReplaceText - This method replaces a range of characters in the input
236 bool ReplaceText(SourceRange range, StringRef NewStr) { function in class:clang::Rewriter
237 return ReplaceText(range.getBegin(), getRangeSize(range), NewStr);
240 /// ReplaceText - This method replaces a range of characters in the input
243 bool ReplaceText(SourceRange range, SourceRange replacementRange);
/external/clang/lib/Rewrite/Core/
H A DHTMLRewrite.cpp129 RB.ReplaceText(FilePos, 1, " ");
133 RB.ReplaceText(FilePos, 1, "<hr>");
142 RB.ReplaceText(FilePos, 1,
146 RB.ReplaceText(FilePos, 1, StringRef(" ", NumSpaces));
151 RB.ReplaceText(FilePos, 1, "&lt;");
156 RB.ReplaceText(FilePos, 1, "&gt;");
161 RB.ReplaceText(FilePos, 1, "&amp;");
H A DRewriter.cpp103 /// ReplaceText - This method replaces a range of characters in the input
106 void RewriteBuffer::ReplaceText(unsigned OrigOffset, unsigned OrigLength, function in class:RewriteBuffer
298 /// ReplaceText - This method replaces a range of characters in the input
301 bool Rewriter::ReplaceText(SourceLocation Start, unsigned OrigLength, function in class:Rewriter
307 getEditBuffer(StartFileID).ReplaceText(StartOffs, OrigLength, NewStr);
311 bool Rewriter::ReplaceText(SourceRange range, SourceRange replacementRange) { function in class:Rewriter
322 return ReplaceText(start, origLength, MB.substr(newOffs, newLength));
340 ReplaceText(From->getLocStart(), Size, Str);
/external/clang/lib/Rewrite/Frontend/
H A DRewriteModernObjC.cpp248 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) {
268 void ReplaceText(SourceLocation Start, unsigned OrigLength, function in class:__anon149::RewriteModernObjC
271 if (!Rewrite.ReplaceText(Start, OrigLength, Str) ||
777 ReplaceText(ImportLoc, ImportLen, "include");
1013 ReplaceText(startLoc, semiPtr-startBuf+1, typedefString);
1060 ReplaceText(LocEnd, 1, ";\n#endif\n");
1069 ReplaceText(Loc, 0, "// ");
1078 ReplaceText(LocStart, 1, "/** ");
1079 ReplaceText(CatDecl->getIvarRBraceLoc(), 1, "**/ ");
1082 ReplaceText(LocStar
[all...]
H A DRewriteObjC.cpp234 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) {
254 void ReplaceText(SourceLocation Start, unsigned OrigLength, function in class:__anon152::RewriteObjC
257 if (!Rewrite.ReplaceText(Start, OrigLength, Str) ||
750 ReplaceText(ImportLoc, ImportLen, "include");
907 ReplaceText(startLoc, semiPtr-startBuf+1, typedefString);
954 ReplaceText(LocEnd, 1, ";\n#endif\n");
963 ReplaceText(Loc, 0, "// ");
971 ReplaceText(LocStart, 0, "// ");
987 ReplaceText(CatDecl->getAtEndRange().getBegin(),
996 ReplaceText(LocStar
[all...]
H A DFixItRewriter.cpp69 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text);
/external/clang/lib/ARCMigrate/
H A DObjCMT.cpp177 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text);
/external/clang/lib/Tooling/
H A DRefactoring.cpp66 // ReplaceText returns false on success.
67 // ReplaceText only fails if the source location is not a file location, in
69 bool RewriteSucceeded = !Rewrite.ReplaceText(Start, Length, ReplacementText);

Completed in 296 milliseconds