/external/clang/lib/Rewrite/Core/ |
CMakeLists.txt | 5 Rewriter.cpp
|
Android.mk | 26 Rewriter.cpp \
|
TokenRewriter.cpp | 62 assert(MapIt != TokenAtLoc.end() && "iterator not in rewriter?"); 67 /// AddToken - Add the specified token into the Rewriter before the other 75 assert(InsertSuccess && "Token location already in rewriter!");
|
Rewriter.cpp | 1 //===--- Rewriter.cpp - Code rewriting interface --------------------------===// 10 // This file defines the Rewriter class, which is used for code 15 #include "clang/Rewrite/Core/Rewriter.h" 117 // Rewriter class 122 int Rewriter::getRangeSize(const CharSourceRange &Range, 155 int Rewriter::getRangeSize(SourceRange Range, RewriteOptions opts) const { 166 std::string Rewriter::getRewrittenText(SourceRange Range) const { 210 unsigned Rewriter::getLocationOffsetAndFileID(SourceLocation Loc, 221 RewriteBuffer &Rewriter::getEditBuffer(FileID FID) { 236 bool Rewriter::InsertText(SourceLocation Loc, StringRef Str [all...] |
/external/clang/lib/Rewrite/Frontend/ |
RewriteTest.cpp | 1 //===--- RewriteTest.cpp - Rewriter playground ----------------------------===// 23 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts); 26 for (TokenRewriter::token_iterator I = Rewriter.token_begin(), 27 E = Rewriter.token_end(); I != E; ++I) { 30 Rewriter.AddTokenBefore(I, "<i>"); 31 Rewriter.AddTokenAfter(I, "</i>"); 36 for (TokenRewriter::token_iterator I = Rewriter.token_begin(), 37 E = Rewriter.token_end(); I != E; ++I)
|
FrontendActions.cpp | 99 Rewriter.reset(new FixItRewriter(CI.getDiagnostics(), CI.getSourceManager(), 106 Rewriter->WriteFixedFiles(); 125 FixItRewriter Rewriter(CI.getDiagnostics(), CI.getSourceManager(), 129 err = Rewriter.WriteFixedFiles(&RewrittenFiles);
|
/external/clang/include/clang/Rewrite/Core/ |
HTMLRewrite.h | 23 class Rewriter; 33 void HighlightRange(Rewriter &R, SourceLocation B, SourceLocation E, 40 inline void HighlightRange(Rewriter &R, SourceRange Range, 53 void EscapeText(Rewriter& R, FileID FID, 63 void AddLineNumbers(Rewriter& R, FileID FID); 65 void AddHeaderFooterInternalBuiltinCSS(Rewriter& R, FileID FID, 70 void SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP); 76 void HighlightMacros(Rewriter &R, FileID FID, const Preprocessor &PP);
|
Rewriter.h | 1 //===--- Rewriter.h - Code rewriting interface ------------------*- C++ -*-===// 10 // This file defines the Rewriter class, which is used for code 28 class Rewriter; 39 friend class Rewriter; 90 private: // Methods only usable by Rewriter. 122 /// Rewriter - This is the main interface to the rewrite buffers. Its primary 125 class Rewriter { 149 explicit Rewriter(SourceManager &SM, const LangOptions &LO) 151 explicit Rewriter() : SourceMgr(0), LangOpts(0) {}
|
TokenRewriter.h | 1 //===--- TokenRewriter.h - Token-based Rewriter -----------------*- C++ -*-===// 70 /// AddToken - Add the specified token into the Rewriter before the other
|
/external/clang/test/Rewriter/ |
finally.m | 7 return(0); // expected-warning{{rewriter doesn't support user-specified control flow semantics for @try/@finally (code may not execute properly)}} 31 return; // The rewriter knows how to generate code for implicit finally 37 return; // The rewriter knows how to generate code for implicit finally
|
rewrite-modern-synchronized.m | 33 return; // The rewriter knows how to generate code for implicit finally
|
/frameworks/base/core/java/com/android/internal/util/ |
FileRotator.java | 45 * {@link #rewriteActive(Rewriter, long)}. 83 public interface Rewriter extends Reader, Writer { 181 public void rewriteActive(Rewriter rewriter, long currentTimeMillis) 184 rewriteSingle(rewriter, activeName); 190 rewriteActive(new Rewriter() { 217 public void rewriteAll(Rewriter rewriter) throws IOException { 223 rewriteSingle(rewriter, name); 232 private void rewriteSingle(Rewriter rewriter, String name) throws IOException [all...] |
/external/clang/lib/ARCMigrate/ |
ObjCMT.cpp | 21 #include "clang/Rewrite/Core/Rewriter.h" 168 Rewriter &Rewrite; 171 RewritesReceiver(Rewriter &Rewrite) : Rewrite(Rewrite) { } 184 Rewriter rewriter(Ctx.getSourceManager(), Ctx.getLangOpts()); 185 RewritesReceiver Rec(rewriter); 188 for (Rewriter::buffer_iterator 189 I = rewriter.buffer_begin(), E = rewriter.buffer_end(); I != E; ++I) {
|
ARCMT.cpp | 17 #include "clang/Rewrite/Core/Rewriter.h" 526 Rewriter &rewriter; member in class:__anon5000::RewritesApplicator 530 RewritesApplicator(Rewriter &rewriter, ASTContext &ctx, 532 : rewriter(rewriter), Listener(listener) { 542 bool err = rewriter.InsertText(loc, text, /*InsertAfter=*/true, 549 Rewriter::RewriteOptions removeOpts; 554 bool err = rewriter.RemoveText(range, removeOpts) [all...] |
/external/clang/include/clang/Rewrite/Frontend/ |
FixItRewriter.h | 1 //===--- FixItRewriter.h - Fix-It Rewriter Diagnostic Client ----*- C++ -*-===// 20 #include "clang/Rewrite/Core/Rewriter.h" 62 /// \brief The rewriter used to perform the various code 64 Rewriter Rewrite; 75 /// \brief The number of rewriter failures. 82 typedef Rewriter::buffer_iterator iterator; 84 /// \brief Initialize a new fix-it rewriter. 88 /// \brief Destroy the fix-it rewriter.
|
Rewriters.h | 1 //===--- Rewriters.h - Rewriter implementations -------------*- C++ -*-===//
|
/external/clang/unittests/Tooling/ |
RewriterTestContext.h | 10 // This file defines a utility class for Rewriter related tests. 23 #include "clang/Rewrite/Core/Rewriter.h" 30 /// \brief A class that sets up a ready to use Rewriter. 32 /// Useful in unit tests that need a Rewriter. Creates all dependencies 33 /// of a Rewriter with default values for testing and provides convenience 67 llvm::sys::fs::unique_file("rewriter-test-%%-%%-%%-%%/anchor", FD, 117 Rewriter Rewrite;
|
RewriterTest.cpp | 15 TEST(Rewriter, OverwritesChangedFiles) { 24 TEST(Rewriter, ContinuesOverwritingFilesOnError) {
|
/external/clang/include/clang/Tooling/ |
Refactoring.h | 11 // While single translation unit refactorings are supported via the Rewriter, 30 class Rewriter; 79 /// \brief Applies the replacement on the Rewriter. 80 bool apply(Rewriter &Rewrite) const; 107 /// \brief Apply all replacements on the Rewriter. 112 bool applyAllReplacements(Replacements &Replaces, Rewriter &Rewrite);
|
/external/clang/lib/Tooling/ |
Refactoring.cpp | 19 #include "clang/Rewrite/Core/Rewriter.h" 50 bool Replacement::apply(Rewriter &Rewrite) const { 124 bool applyAllReplacements(Replacements &Replaces, Rewriter &Rewrite) { 138 bool saveRewrittenFiles(Rewriter &Rewrite) { 139 for (Rewriter::buffer_iterator I = Rewrite.buffer_begin(), 143 // go into directly into Rewriter (there we also have the Diagnostics to 174 Rewriter Rewrite(Sources, DefaultLangOptions);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
JavaNetHttpHelper.java | 50 * @param rewriter URI rewriter 53 public JavaNetHttpHelper(UrlRewriter rewriter, String userAgent) { 55 mRewriter = rewriter; 178 * A Url rewriter that does nothing, i.e., returns the
|
/external/clang/test/ARCMT/ |
check-with-serialized-diag.m | 42 // CHECK: {{.*}}check-with-serialized-diag.m:32:4: error: [rewriter] it is not safe to remove 'retain' message on an __unsafe_unretained type 44 // CHECK-NEXT: {{.*}}check-with-serialized-diag.m:34:4: error: [rewriter] it is not safe to remove 'retain' message on a global variable
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
AddSuppressAnnotation.java | 172 ASTRewrite rewriter = ASTRewrite.create(ast); local 179 ListRewrite listRewrite = rewriter.getListRewrite(declaration, 198 rewriter.set(existing, VALUE_PROPERTY, array, null); 215 ListRewrite listRewrite = rewriter.getListRewrite(array, EXPRESSIONS_PROPERTY); 224 TextEdit annotationEdits = rewriter.rewriteAST(document, null); 260 ASTRewrite rewriter = ASTRewrite.create(ast); local 266 ListRewrite listRewrite = rewriter.getListRewrite(declaration, 271 rewriter.set(existing, VALUE_PROPERTY, value, null); 275 TextEdit annotationEdits = rewriter.rewriteAST(document, null);
|
/external/v8/src/ |
rewriter.h | 36 class Rewriter {
|
/external/qemu/proxy/ |
proxy_http.c | 48 /* use the rewriter for HTTP */ 49 PROXY_LOG("%s: using HTTP rewriter", __FUNCTION__); 52 PROXY_LOG("%s: using HTTP rewriter", __FUNCTION__);
|