/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" 119 // Rewriter class 124 int Rewriter::getRangeSize(const CharSourceRange &Range, 157 int Rewriter::getRangeSize(SourceRange Range, RewriteOptions opts) const { 168 std::string Rewriter::getRewrittenText(SourceRange Range) const { 212 unsigned Rewriter::getLocationOffsetAndFileID(SourceLocation Loc, 223 RewriteBuffer &Rewriter::getEditBuffer(FileID FID) { 238 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)
|
/external/chromium_org/chrome/browser/ui/ash/ |
event_rewriter_unittest.cc | 46 std::string GetRewrittenEventAsString(EventRewriter* rewriter, 55 rewriter->RewriteForTesting(&keyevent); 326 EventRewriter rewriter; local 327 EXPECT_TRUE(rewriter.device_id_to_type_for_testing().empty()); 329 rewriter.DeviceAddedForTesting(0, "PC Keyboard")); 330 EXPECT_EQ(1U, rewriter.device_id_to_type_for_testing().size()); 332 rewriter.DeviceAddedForTesting(1, "Apple Keyboard")); 333 EXPECT_EQ(2U, rewriter.device_id_to_type_for_testing().size()); 336 rewriter.DeviceAddedForTesting(0, "Apple Keyboard")); 337 EXPECT_EQ(2U, rewriter.device_id_to_type_for_testing().size()) 344 EventRewriter rewriter; local 503 EventRewriter rewriter; local 559 EventRewriter rewriter; local 902 EventRewriter rewriter; local 955 EventRewriter rewriter; local 1046 EventRewriter rewriter; local 1135 EventRewriter rewriter; local 1270 EventRewriter rewriter; local 1390 EventRewriter rewriter; local 1503 EventRewriter rewriter; local 1616 EventRewriter rewriter; local 1644 EventRewriter rewriter; local 1689 EventRewriter rewriter; local 1779 EventRewriter rewriter; local 1834 EventRewriter rewriter; local 1859 EventRewriter rewriter; local 2002 EventRewriter rewriter; local 2225 EventRewriter rewriter; local 2270 EventRewriter rewriter; local [all...] |
/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; 94 private: // Methods only usable by Rewriter. 126 /// Rewriter - This is the main interface to the rewrite buffers. Its primary 129 class Rewriter { 153 explicit Rewriter(SourceManager &SM, const LangOptions &LO) 155 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/include/clang/Rewrite/Frontend/ |
FixItRewriter.h | 1 //===--- FixItRewriter.h - Fix-It Rewriter Diagnostic Client ----*- C++ -*-===// 21 #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/include/clang/Tooling/ |
Refactoring.h | 11 // While single translation unit refactorings are supported via the Rewriter, 30 class Rewriter; 113 /// \brief Applies the replacement on the Rewriter. 114 bool apply(Rewriter &Rewrite) const; 140 /// \brief Apply all replacements in \p Replaces to the Rewriter \p Rewrite. 146 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite); 179 /// \brief Apply all stored replacements to the given Rewriter. 185 bool applyAllReplacements(Rewriter &Rewrite); 189 int saveRewrittenFiles(Rewriter &Rewrite);
|
/external/chromium_org/content/browser/ |
browser_url_handler_impl_unittest.cc | 15 // Test URL rewriter that rewrites all "foo://" URLs to "bar://bar". 24 // Test URL rewriter that rewrites all "bar://" URLs to "foo://foo".
|
/external/clang/unittests/Tooling/ |
RewriterTest.cpp | 15 TEST(Rewriter, OverwritesChangedFiles) { 24 TEST(Rewriter, ContinuesOverwritingFilesOnError) {
|
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 114 Rewriter Rewrite;
|
/external/clang/lib/Tooling/ |
Refactoring.cpp | 19 #include "clang/Rewrite/Core/Rewriter.h" 50 bool Replacement::apply(Rewriter &Rewrite) const { 126 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite) { 148 Rewriter Rewrite(SourceMgr, LangOptions()); 200 Rewriter Rewrite(Sources, DefaultLangOptions); 209 bool RefactoringTool::applyAllReplacements(Rewriter &Rewrite) { 213 int RefactoringTool::saveRewrittenFiles(Rewriter &Rewrite) { 214 for (Rewriter::buffer_iterator I = Rewrite.buffer_begin(), 218 // go into directly into Rewriter (there we also have the Diagnostics to
|
/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
|
/external/clang/lib/ARCMigrate/ |
ARCMT.cpp | 19 #include "clang/Rewrite/Core/Rewriter.h" 513 Rewriter &rewriter; member in class:__anon17467::RewritesApplicator 517 RewritesApplicator(Rewriter &rewriter, ASTContext &ctx, 519 : rewriter(rewriter), Listener(listener) { 529 bool err = rewriter.InsertText(loc, text, /*InsertAfter=*/true, 536 Rewriter::RewriteOptions removeOpts; 541 bool err = rewriter.RemoveText(range, removeOpts) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
AddSuppressAnnotation.java | 173 ASTRewrite rewriter = ASTRewrite.create(ast); local 180 ListRewrite listRewrite = rewriter.getListRewrite(declaration, 199 rewriter.set(existing, VALUE_PROPERTY, array, null); 216 ListRewrite listRewrite = rewriter.getListRewrite(array, EXPRESSIONS_PROPERTY); 225 TextEdit annotationEdits = rewriter.rewriteAST(document, null); 261 ASTRewrite rewriter = ASTRewrite.create(ast); local 267 ListRewrite listRewrite = rewriter.getListRewrite(declaration, 272 rewriter.set(existing, VALUE_PROPERTY, value, null); 276 TextEdit annotationEdits = rewriter.rewriteAST(document, null);
|
/external/clang/tools/libclang/ |
SimpleFormatContext.h | 24 #include "clang/Rewrite/Core/Rewriter.h" 70 Rewriter Rewrite;
|
/external/chromium_org/v8/src/ |
rewriter.h | 36 class Rewriter {
|