Home
last modified time | relevance | path

Searched refs:RewriteBuffer (Results 1 – 25 of 29) sorted by relevance

12

/external/llvm-project/clang/unittests/Rewrite/
DRewriteBufferTest.cpp19 static std::string writeOutput(const RewriteBuffer &Buf) { in writeOutput()
28 RewriteBuffer &Buf) { in tagRange()
38 TEST(RewriteBuffer, TagRanges) { in TEST() argument
42 RewriteBuffer Buf; in TEST()
56 TEST(RewriteBuffer, DISABLED_RemoveLineIfEmpty_XFAIL) { in TEST() argument
60 RewriteBuffer Buf; in TEST()
/external/clang/lib/Rewrite/
DRewriter.cpp25 raw_ostream &RewriteBuffer::write(raw_ostream &os) const { in write()
49 void RewriteBuffer::RemoveText(unsigned OrigOffset, unsigned Size, in RemoveText()
92 void RewriteBuffer::InsertText(unsigned OrigOffset, StringRef Str, in InsertText()
108 void RewriteBuffer::ReplaceText(unsigned OrigOffset, unsigned OrigLength, in ReplaceText()
140 std::map<FileID, RewriteBuffer>::const_iterator I = in getRangeSize()
143 const RewriteBuffer &RB = I->second; in getRangeSize()
183 std::map<FileID, RewriteBuffer>::const_iterator I = in getRewrittenText()
195 const RewriteBuffer &RB = I->second; in getRewrittenText()
204 RewriteBuffer::iterator Start = RB.begin(); in getRewrittenText()
206 RewriteBuffer::iterator End = Start; in getRewrittenText()
[all …]
DHTMLRewrite.cpp57 void html::HighlightRange(RewriteBuffer &RB, unsigned B, unsigned E, in HighlightRange()
115 RewriteBuffer &RB = R.getEditBuffer(FID); in EscapeText()
208 static void AddLineNumber(RewriteBuffer &RB, unsigned LineNo, in AddLineNumber()
232 RewriteBuffer &RB = R.getEditBuffer(FID); in AddLineNumbers()
358 RewriteBuffer &RB = R.getEditBuffer(FID); in SyntaxHighlight()
/external/llvm-project/clang/lib/Rewrite/
DRewriter.cpp37 raw_ostream &RewriteBuffer::write(raw_ostream &os) const { in write()
61 void RewriteBuffer::RemoveText(unsigned OrigOffset, unsigned Size, in RemoveText()
115 void RewriteBuffer::InsertText(unsigned OrigOffset, StringRef Str, in InsertText()
130 void RewriteBuffer::ReplaceText(unsigned OrigOffset, unsigned OrigLength, in ReplaceText()
159 std::map<FileID, RewriteBuffer>::const_iterator I = in getRangeSize()
162 const RewriteBuffer &RB = I->second; in getRangeSize()
199 std::map<FileID, RewriteBuffer>::const_iterator I = in getRewrittenText()
213 const RewriteBuffer &RB = I->second; in getRewrittenText()
223 RewriteBuffer::iterator Start = RB.begin(); in getRewrittenText()
225 RewriteBuffer::iterator End = Start; in getRewrittenText()
[all …]
DHTMLRewrite.cpp58 void html::HighlightRange(RewriteBuffer &RB, unsigned B, unsigned E, in HighlightRange()
116 RewriteBuffer &RB = R.getEditBuffer(FID); in EscapeText()
209 static void AddLineNumber(RewriteBuffer &RB, unsigned LineNo, in AddLineNumber()
233 RewriteBuffer &RB = R.getEditBuffer(FID); in AddLineNumbers()
445 RewriteBuffer &RB = R.getEditBuffer(FID); in SyntaxHighlight()
/external/clang/include/clang/Rewrite/Core/
DRewriter.h34 std::map<FileID, RewriteBuffer> RewriteBuffers;
53 typedef std::map<FileID, RewriteBuffer>::iterator buffer_iterator;
54 typedef std::map<FileID, RewriteBuffer>::const_iterator const_buffer_iterator;
166 RewriteBuffer &getEditBuffer(FileID FID);
170 const RewriteBuffer *getRewriteBufferFor(FileID FID) const { in getRewriteBufferFor()
171 std::map<FileID, RewriteBuffer>::const_iterator I = in getRewriteBufferFor()
DHTMLRewrite.h24 class RewriteBuffer; variable
47 void HighlightRange(RewriteBuffer &RB, unsigned B, unsigned E,
DRewriteBuffer.h27 class RewriteBuffer {
/external/llvm-project/clang/include/clang/Rewrite/Core/
DRewriter.h35 std::map<FileID, RewriteBuffer> RewriteBuffers;
65 using buffer_iterator = std::map<FileID, RewriteBuffer>::iterator;
66 using const_buffer_iterator = std::map<FileID, RewriteBuffer>::const_iterator;
194 RewriteBuffer &getEditBuffer(FileID FID);
198 const RewriteBuffer *getRewriteBufferFor(FileID FID) const { in getRewriteBufferFor()
199 std::map<FileID, RewriteBuffer>::const_iterator I = in getRewriteBufferFor()
DHTMLRewrite.h23 class RewriteBuffer; variable
47 void HighlightRange(RewriteBuffer &RB, unsigned B, unsigned E,
DRewriteBuffer.h25 class RewriteBuffer {
/external/clang/unittests/Rewrite/
DRewriteBufferTest.cpp19 RewriteBuffer &Buf) { in tagRange()
29 TEST(RewriteBuffer, TagRanges) { in TEST() argument
33 RewriteBuffer Buf; in TEST()
/external/llvm-project/clang/lib/Frontend/Rewrite/
DRewriteMacros.cpp94 RewriteBuffer &RB = Rewrite.getEditBuffer(SM.getMainFileID()); in RewriteMacrosInInput()
208 if (const RewriteBuffer *RewriteBuf = in RewriteMacrosInInput()
DFixItRewriter.cpp52 const RewriteBuffer *RewriteBuf = Rewrite.getRewriteBufferFor(ID); in WriteFixedFile()
112 RewriteBuffer &RewriteBuf = I->second; in WriteFixedFiles()
DHTMLPrint.cpp87 const RewriteBuffer &RewriteBuf = R.getEditBuffer(FID); in HandleTranslationUnit()
/external/clang/lib/Frontend/Rewrite/
DRewriteMacros.cpp95 RewriteBuffer &RB = Rewrite.getEditBuffer(SM.getMainFileID()); in RewriteMacrosInInput()
209 if (const RewriteBuffer *RewriteBuf = in RewriteMacrosInInput()
DFixItRewriter.cpp49 const RewriteBuffer *RewriteBuf = Rewrite.getRewriteBufferFor(ID); in WriteFixedFile()
107 RewriteBuffer &RewriteBuf = I->second; in WriteFixedFiles()
DHTMLPrint.cpp90 const RewriteBuffer &RewriteBuf = R.getEditBuffer(FID); in HandleTranslationUnit()
/external/clang/lib/StaticAnalyzer/Core/
DHTMLDiagnostics.cpp283 const RewriteBuffer *Buf = R.getRewriteBufferFor(FID); in ReportDiag()
343 for (RewriteBuffer::iterator I = Buf->begin(), E = Buf->end(); I!=E; ++I) in ReportDiag()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DHTMLDiagnostics.cpp346 const RewriteBuffer *Buf = R.getRewriteBufferFor(I); in GenerateHTML()
354 const RewriteBuffer *Buf = R.getRewriteBufferFor(FileIDs[0]); in GenerateHTML()
/external/llvm-project/clang/lib/ARCMigrate/
DARCMT.cpp601 RewriteBuffer &buf = I->second; in applyTransform()
DObjCMT.cpp1966 RewriteBuffer &buf = I->second; in HandleTranslationUnit()
2195 const RewriteBuffer *Buf = rewriter.getRewriteBufferFor(FID); in applyEditsToTemp()
/external/clang/lib/ARCMigrate/
DARCMT.cpp600 RewriteBuffer &buf = I->second; in applyTransform()
DObjCMT.cpp1965 RewriteBuffer &buf = I->second; in HandleTranslationUnit()
2199 const RewriteBuffer *Buf = rewriter.getRewriteBufferFor(FID); in applyEditsToTemp()
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DClangExpressionParser.cpp1284 RewriteBuffer &main_file_buffer = in RewriteExpression()

12