Lines Matching refs:StringRef
25 #include "llvm/ADT/StringRef.h"
115 void RewriteBuffer::InsertText(unsigned OrigOffset, StringRef Str,
131 StringRef NewStr) {
247 StringRef MB = SourceMgr->getBufferData(FID);
255 bool Rewriter::InsertText(SourceLocation Loc, StringRef Str,
262 if (indentNewLines && Str.find('\n') != StringRef::npos) {
263 StringRef MB = SourceMgr->getBufferData(FID);
271 StringRef indentSpace;
279 SmallVector<StringRef, 4> lines;
296 bool Rewriter::InsertTextAfterToken(SourceLocation Loc, StringRef Str) {
321 StringRef NewStr) {
340 StringRef MB = SourceMgr->getBufferData(FID);
364 StringRef MB = SourceMgr->getBufferData(FID);
378 StringRef parentSpace, startSpace;
395 StringRef indent = startSpace.substr(parentSpace.size());
404 StringRef origIndent = MB.substr(offs, i-offs);
422 AtomicallyMovedFile(DiagnosticsEngine &Diagnostics, StringRef Filename,
457 StringRef Filename;