Home
last modified time | relevance | path

Searched refs:ReplaceText (Results 1 – 11 of 11) 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/bcc/src/cc/frontends/clang/
Db_frontend_action.cc431 rewriter_.ReplaceText(expansionLoc(E->getOperatorLoc()), 1, pre); in VisitUnaryOperator()
489 rewriter_.ReplaceText(expansionRange(SourceRange(member, GET_ENDLOC(E))), post); in VisitMemberExpr()
538 rewriter_.ReplaceText(lbracket_range, lbracket); in VisitArraySubscriptExpr()
541 rewriter_.ReplaceText(expansionLoc(E->getRBracketLoc()), 1, rbracket); in VisitArraySubscriptExpr()
684 rewriter_.ReplaceText( in rewriteFuncParam()
691 rewriter_.ReplaceText(S->getLBracLoc(), 1, preamble); in rewriteFuncParam()
881 rewriter_.ReplaceText(expansionRange(SourceRange(rewrite_start, rewrite_end)), txt); in VisitCallExpr()
907 rewriter_.ReplaceText(expansionRange(Call->getSourceRange()), text); in VisitCallExpr()
912 rewriter_.ReplaceText(expansionRange(Call->getSourceRange()), text); in VisitCallExpr()
920 rewriter_.ReplaceText(expansionRange(Call->getSourceRange()), text); in VisitCallExpr()
[all …]
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp229 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) { in ReplaceStmtWithRange()
249 void ReplaceText(SourceLocation Start, unsigned OrigLength, in ReplaceText() function in __anonc8a4c0a50111::RewriteObjC
252 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.cpp278 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) { in ReplaceStmtWithRange()
298 void ReplaceText(SourceLocation Start, unsigned OrigLength, in ReplaceText() function in __anon8682a12a0111::RewriteModernObjC
301 if (!Rewrite.ReplaceText(Start, OrigLength, Str) || in ReplaceText()
820 ReplaceText(ImportLoc, ImportLen, "include"); in RewriteInclude()
1064 ReplaceText(startLoc, semiPtr-startBuf+1, typedefString); in RewriteForwardClassEpilogue()
1114 ReplaceText(LocEnd, 1, ";\n#endif\n"); in RewriteMethodDeclaration()
1123 ReplaceText(Loc, 0, "// "); in RewriteProperty()
1132 ReplaceText(LocStart, 1, "/** "); in RewriteCategoryDecl()
1133 ReplaceText(CatDecl->getIvarRBraceLoc(), 1, "**/ "); in RewriteCategoryDecl()
1136 ReplaceText(LocStart, 0, "// "); in RewriteCategoryDecl()
[all …]
DFixItRewriter.cpp68 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace()
/external/clang/lib/Tooling/Core/
DReplacement.cpp69 bool RewriteSucceeded = !Rewrite.ReplaceText( in apply()
/external/clang/lib/ARCMigrate/
DObjCMT.cpp1762 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace()