Home
last modified time | relevance | path

Searched refs:Rewrite (Results 1 – 25 of 83) sorted by relevance

1234

/external/clang/lib/Rewrite/Frontend/
DFixItRewriter.cpp35 Rewrite(SourceMgr, LangOpts), in FixItRewriter()
50 const RewriteBuffer *RewriteBuf = Rewrite.getRewriteBufferFor(ID); in WriteFixedFile()
60 Rewriter &Rewrite; member in __anon5de14fba0111::RewritesReceiver
63 RewritesReceiver(Rewriter &Rewrite) : Rewrite(Rewrite) { } in RewritesReceiver() argument
66 Rewrite.InsertText(loc, text); in insert()
69 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace()
82 RewritesReceiver Rec(Rewrite); in WriteFixedFiles()
86 const FileEntry *Entry = Rewrite.getSourceMgr().getFileEntryForID(I->first); in WriteFixedFiles()
202 Rewrite.getLangOpts(), FixItOpts); in clone()
DRewriteMacros.cpp93 Rewriter Rewrite; in RewriteMacrosInInput() local
94 Rewrite.setSourceMgr(SM, PP.getLangOpts()); in RewriteMacrosInInput()
95 RewriteBuffer &RB = Rewrite.getEditBuffer(SM.getMainFileID()); in RewriteMacrosInInput()
210 Rewrite.getRewriteBufferFor(SM.getMainFileID())) { in RewriteMacrosInInput()
DInclusionRewriter.cpp342 InclusionRewriter *Rewrite = new InclusionRewriter(PP, *OS, in RewriteIncludesInInput() local
344 PP.addPPCallbacks(Rewrite); in RewriteIncludesInInput()
359 Rewrite->Process(SM.getMainFileID(), SrcMgr::C_User); in RewriteIncludesInInput()
/external/clang/lib/Tooling/
DRefactoring.cpp50 bool Replacement::apply(Rewriter &Rewrite) const { in apply()
51 SourceManager &SM = Rewrite.getSourceMgr(); in apply()
69 bool RewriteSucceeded = !Rewrite.ReplaceText(Start, Length, ReplacementText); in apply()
124 bool applyAllReplacements(Replacements &Replaces, Rewriter &Rewrite) { in applyAllReplacements() argument
130 Result = I->apply(Rewrite) && Result; in applyAllReplacements()
138 bool saveRewrittenFiles(Rewriter &Rewrite) { in saveRewrittenFiles() argument
139 for (Rewriter::buffer_iterator I = Rewrite.buffer_begin(), in saveRewrittenFiles()
140 E = Rewrite.buffer_end(); in saveRewrittenFiles()
146 Rewrite.getSourceMgr().getFileEntryForID(I->first); in saveRewrittenFiles()
174 Rewriter Rewrite(Sources, DefaultLangOptions); in run() local
[all …]
/external/clang/unittests/Tooling/
DRewriterTest.cpp18 Context.Rewrite.ReplaceText(Context.getLocation(ID, 2, 1), 5, "replaced"); in TEST()
19 EXPECT_FALSE(Context.Rewrite.overwriteChangedFiles()); in TEST()
27 Context.Rewrite.ReplaceText(Context.getLocation(FailingID, 1, 2), 1, "other"); in TEST()
30 Context.Rewrite.ReplaceText(Context.getLocation(WorkingID, 2, 1), 5, in TEST()
32 EXPECT_TRUE(Context.Rewrite.overwriteChangedFiles()); in TEST()
DRefactoringTest.cpp48 EXPECT_TRUE(Replace.apply(Context.Rewrite)); in TEST_F()
56 EXPECT_TRUE(Replace.apply(Context.Rewrite)); in TEST_F()
64 EXPECT_TRUE(Replace.apply(Context.Rewrite)); in TEST_F()
73 EXPECT_TRUE(Replace.apply(Context.Rewrite)); in TEST_F()
82 EXPECT_TRUE(Replace1.apply(Context.Rewrite)); in TEST_F()
89 EXPECT_TRUE(Replace2.apply(Context.Rewrite)); in TEST_F()
95 EXPECT_FALSE(Replace.apply(Context.Rewrite)); in TEST_F()
119 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
133 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
149 EXPECT_FALSE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
[all …]
DRewriterTestContext.h42 Rewrite(Sources, Options) { in RewriterTestContext()
96 Rewrite.getEditBuffer(ID).write(OS); in getRewrittenText()
117 Rewriter Rewrite; variable
DRefactoringCallbacksTest.cpp35 Context.Rewrite)); in expectRewritten()
/external/clang/include/clang/Rewrite/Frontend/
DFixItRewriter.h64 Rewriter Rewrite; variable
93 return Rewrite.getRewriteBufferFor(ID) != NULL; in IsModified()
97 iterator buffer_begin() { return Rewrite.buffer_begin(); } in buffer_begin()
98 iterator buffer_end() { return Rewrite.buffer_end(); } in buffer_end()
/external/clang/lib/ARCMigrate/
DObjCMT.cpp168 Rewriter &Rewrite; member in __anonb5f593af0311::RewritesReceiver
171 RewritesReceiver(Rewriter &Rewrite) : Rewrite(Rewrite) { } in RewritesReceiver() argument
174 Rewrite.InsertText(loc, text); in insert()
177 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace()
/external/clang/
DAndroid.mk19 lib/Rewrite/Core \
20 lib/Rewrite/Frontend \
/external/clang/include/clang/Tooling/
DRefactoring.h80 bool apply(Rewriter &Rewrite) const;
112 bool applyAllReplacements(Replacements &Replaces, Rewriter &Rewrite);
/external/v8/src/
Drewriter.h44 static bool Rewrite(CompilationInfo* info);
Drewriter.cc235 bool Rewriter::Rewrite(CompilationInfo* info) { in EXPRESSION_NODE_LIST()
/external/clang/lib/
DMakefile12 StaticAnalyzer Edit Rewrite ARCMigrate Serialization Frontend \
DCMakeLists.txt11 add_subdirectory(Rewrite)
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/
DReduce.g320 /** Rewrite: x+x to be 2*x, 2*x to be x<<1, x<<n<<m to be x<<(n+m) */
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRTreeAdaptor.h102 #pragma mark Rewrite Rules
/external/webp/
DREADME.android6 - Rewrite Android.mk to remove duplicate definitions and set module name
/external/regex-re2/util/
Dpcre.cc335 if (!pattern.Rewrite(&s, rewrite, *str, vec, matches)) in Replace()
385 pattern.Rewrite(&out, rewrite, *str, vec, matches); in GlobalReplace()
409 return pattern.Rewrite(out, rewrite, text, vec, matches); in Extract()
606 bool PCRE::Rewrite(string *out, const StringPiece &rewrite, in Rewrite() function in re2::PCRE
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/
DANTLRTreeAdaptor.h106 #pragma mark Rewrite Rules
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/
DANTLRTreeAdaptor.h106 #pragma mark Rewrite Rules
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/
DANTLRTreeAdaptor.h106 #pragma mark Rewrite Rules
/external/elfutils/config/
DChangeLog3 * Makefile.am ($(srcdir)/elfutils.spec.in): Rewrite awk magic.
/external/regex-re2/re2/
Dre2.cc337 if (!re.Rewrite(&s, rewrite, vec, nvec)) in Replace()
371 re.Rewrite(&out, rewrite, vec, nvec); in GlobalReplace()
399 return re.Rewrite(out, rewrite, vec, nvec); in Extract()
827 bool RE2::Rewrite(string *out, const StringPiece &rewrite, in Rewrite() function in re2::RE2

1234