/external/clang/unittests/Tooling/ |
H A D | RewriterTest.cpp | 18 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 D | Rewriter.h | 84 /// 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 D | HTMLRewrite.cpp | 129 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, "<"); 156 RB.ReplaceText(FilePos, 1, ">"); 161 RB.ReplaceText(FilePos, 1, "&");
|
H A D | Rewriter.cpp | 103 /// 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 D | RewriteModernObjC.cpp | 248 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 D | RewriteObjC.cpp | 234 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 D | FixItRewriter.cpp | 69 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text);
|
/external/clang/lib/ARCMigrate/ |
H A D | ObjCMT.cpp | 177 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text);
|
/external/clang/lib/Tooling/ |
H A D | Refactoring.cpp | 66 // 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);
|