Lines Matching refs:text
133 void insert(SourceLocation loc, StringRef text);
134 void insertAfterToken(SourceLocation loc, StringRef text);
137 void replace(SourceRange range, StringRef text);
139 void replaceStmt(Stmt *S, StringRef text);
140 void replaceText(SourceLocation loc, StringRef text,
154 bool canReplaceText(SourceLocation loc, StringRef text);
156 void commitInsert(SourceLocation loc, StringRef text);
157 void commitInsertAfterToken(SourceLocation loc, StringRef text);
161 void commitReplaceText(SourceLocation loc, StringRef text,
167 void addInsertion(SourceLocation loc, StringRef text);
172 StringRef getUniqueText(StringRef text);
284 void TransformActionsImpl::insert(SourceLocation loc, StringRef text) { in insert() argument
286 text = getUniqueText(text); in insert()
290 data.Text1 = text; in insert()
294 void TransformActionsImpl::insertAfterToken(SourceLocation loc, StringRef text) { in insertAfterToken() argument
296 text = getUniqueText(text); in insertAfterToken()
300 data.Text1 = text; in insertAfterToken()
322 void TransformActionsImpl::replace(SourceRange range, StringRef text) { in replace() argument
324 text = getUniqueText(text); in replace()
326 insert(range.getBegin(), text); in replace()
339 void TransformActionsImpl::replaceText(SourceLocation loc, StringRef text, in replaceText() argument
341 text = getUniqueText(text); in replaceText()
346 data.Text1 = text; in replaceText()
351 void TransformActionsImpl::replaceStmt(Stmt *S, StringRef text) { in replaceStmt() argument
353 text = getUniqueText(text); in replaceStmt()
354 insert(S->getBeginLoc(), text); in replaceStmt()
418 bool TransformActionsImpl::canReplaceText(SourceLocation loc, StringRef text) { in canReplaceText() argument
434 return file.substr(locInfo.second).startswith(text); in canReplaceText()
437 void TransformActionsImpl::commitInsert(SourceLocation loc, StringRef text) { in commitInsert() argument
438 addInsertion(loc, text); in commitInsert()
442 StringRef text) { in commitInsertAfterToken() argument
443 addInsertion(getLocForEndOfToken(loc, Ctx.getSourceManager(), PP), text); in commitInsertAfterToken()
481 StringRef text, in commitReplaceText() argument
486 SourceLocation afterText = loc.getLocWithOffset(text.size()); in commitReplaceText()
506 void TransformActionsImpl::addInsertion(SourceLocation loc, StringRef text) { in addInsertion() argument
516 Inserts[FullSourceLoc(loc, SM)].push_back(text); in addInsertion()
584 StringRef TransformActionsImpl::getUniqueText(StringRef text) { in getUniqueText() argument
585 return UniqueText.insert(std::make_pair(text, false)).first->first(); in getUniqueText()
629 void TransformActions::insert(SourceLocation loc, StringRef text) { in insert() argument
630 static_cast<TransformActionsImpl*>(Impl)->insert(loc, text); in insert()
634 StringRef text) { in insertAfterToken() argument
635 static_cast<TransformActionsImpl*>(Impl)->insertAfterToken(loc, text); in insertAfterToken()
646 void TransformActions::replace(SourceRange range, StringRef text) { in replace() argument
647 static_cast<TransformActionsImpl*>(Impl)->replace(range, text); in replace()
655 void TransformActions::replaceStmt(Stmt *S, StringRef text) { in replaceStmt() argument
656 static_cast<TransformActionsImpl*>(Impl)->replaceStmt(S, text); in replaceStmt()
659 void TransformActions::replaceText(SourceLocation loc, StringRef text, in replaceText() argument
661 static_cast<TransformActionsImpl*>(Impl)->replaceText(loc, text, in replaceText()