/external/clang/lib/Rewrite/ |
CMakeLists.txt | 9 Rewriter.cpp
|
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" 121 // Rewriter class 126 int Rewriter::getRangeSize(const CharSourceRange &Range, 159 int Rewriter::getRangeSize(SourceRange Range, RewriteOptions opts) const { 170 std::string Rewriter::getRewrittenText(SourceRange Range) const { 214 unsigned Rewriter::getLocationOffsetAndFileID(SourceLocation Loc, 225 RewriteBuffer &Rewriter::getEditBuffer(FileID FID) { 240 bool Rewriter::InsertText(SourceLocation Loc, StringRef Str [all...] |
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!");
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/rewriter/ |
Rewriters.java | 32 package org.jf.dexlib2.rewriter; 44 @Nonnull Rewriter<ClassDef> getClassDefRewriter(); 45 @Nonnull Rewriter<Field> getFieldRewriter(); 47 @Nonnull Rewriter<Method> getMethodRewriter(); 48 @Nonnull Rewriter<MethodParameter> getMethodParameterRewriter(); 49 @Nonnull Rewriter<MethodImplementation> getMethodImplementationRewriter(); 50 @Nonnull Rewriter<Instruction> getInstructionRewriter(); 51 @Nonnull Rewriter<TryBlock<? extends ExceptionHandler>> getTryBlockRewriter(); 52 @Nonnull Rewriter<ExceptionHandler> getExceptionHandlerRewriter(); 53 @Nonnull Rewriter<DebugItem> getDebugItemRewriter() [all...] |
DexRewriter.java | 32 package org.jf.dexlib2.rewriter; 53 * DexRewriter rewriter = new DexRewriter(new RewriterModule() { 54 * public Rewriter<String> getTypeRewriter(Rewriters rewriters) { 55 * return new Rewriter<String>() { 65 * DexFile rewrittenDexFile = rewriter.rewriteDexFile(dexFile); 70 private final Rewriter<ClassDef> classDefRewriter; 71 private final Rewriter<Field> fieldRewriter; 72 private final Rewriter<Method> methodRewriter; 73 private final Rewriter<MethodParameter> methodParameterRewriter; 74 private final Rewriter<MethodImplementation> methodImplementationRewriter [all...] |
RewriterModule.java | 32 package org.jf.dexlib2.rewriter; 44 @Nonnull public Rewriter<ClassDef> getClassDefRewriter(@Nonnull Rewriters rewriters) { 48 @Nonnull public Rewriter<Field> getFieldRewriter(@Nonnull Rewriters rewriters) { 52 @Nonnull public Rewriter<Method> getMethodRewriter(@Nonnull Rewriters rewriters) { 56 @Nonnull public Rewriter<MethodParameter> getMethodParameterRewriter(@Nonnull Rewriters rewriters) { 60 @Nonnull public Rewriter<MethodImplementation> getMethodImplementationRewriter(@Nonnull Rewriters rewriters) { 64 @Nonnull public Rewriter<Instruction> getInstructionRewriter(@Nonnull Rewriters rewriters) { 68 @Nonnull public Rewriter<TryBlock<? extends ExceptionHandler>> getTryBlockRewriter(@Nonnull Rewriters rewriters) { 72 @Nonnull public Rewriter<ExceptionHandler> getExceptionHandlerRewriter(@Nonnull Rewriters rewriters) { 76 @Nonnull public Rewriter<DebugItem> getDebugItemRewriter(@Nonnull Rewriters rewriters) [all...] |
RewriterUtils.java | 32 package org.jf.dexlib2.rewriter; 43 public static <T> T rewriteNullable(@Nonnull Rewriter<T> rewriter, @Nullable T value) { 44 return value==null?null:rewriter.rewrite(value); 47 public static <T> Set<T> rewriteSet(@Nonnull final Rewriter<T> rewriter, 58 return rewriteNullable(rewriter, iterator.next()); 73 public static <T> List<T> rewriteList(@Nonnull final Rewriter<T> rewriter, 77 return rewriteNullable(rewriter, list.get(i)) [all...] |
Rewriter.java | 32 package org.jf.dexlib2.rewriter; 36 public interface Rewriter<T> {
|
TypeRewriter.java | 32 package org.jf.dexlib2.rewriter; 36 public class TypeRewriter implements Rewriter<String> {
|
/external/clang/lib/Frontend/Rewrite/ |
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/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 /// Rewriter - This is the main interface to the rewrite buffers. Its primary 31 class Rewriter { 56 explicit Rewriter(SourceManager &SM, const LangOptions &LO) 58 explicit Rewriter() : SourceMgr(nullptr), LangOpts(nullptr) {}
|
/external/clang/test/ARCMT/ |
GC-check-warn-nsalloc.m | 1 // RUN: %clang_cc1 -arcmt-check -no-ns-alloc-error -triple x86_64-apple-darwin10 -fobjc-gc-only %s 2>&1 | grep 'warning: \[rewriter\] call returns pointer to GC managed memory' 2 // RUN: %clang_cc1 -arcmt-check -no-ns-alloc-error -triple x86_64-apple-darwin10 -fobjc-gc-only -x objective-c++ %s 2>&1 | grep 'warning: \[rewriter\] call returns pointer to GC managed memory'
|
/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 | 32 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/Tooling/Core/ |
Replacement.h | 11 // While single translation unit refactorings are supported via the Rewriter, 30 class Rewriter; 110 /// \brief Applies the replacement on the Rewriter. 111 bool apply(Rewriter &Rewrite) const; 138 /// \brief Apply all replacements in \p Replaces to the Rewriter \p Rewrite. 144 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite); 146 /// \brief Apply all replacements in \p Replaces to the Rewriter \p Rewrite. 153 Rewriter &Rewrite); 195 /// \brief Apply all replacements in \p Replaces to the Rewriter \p Rewrite. 201 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite) [all...] |
/external/clang/lib/Tooling/ |
Refactoring.cpp | 19 #include "clang/Rewrite/Core/Rewriter.h" 46 Rewriter Rewrite(Sources, DefaultLangOptions); 55 bool RefactoringTool::applyAllReplacements(Rewriter &Rewrite) { 59 int RefactoringTool::saveRewrittenFiles(Rewriter &Rewrite) {
|
/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.
|
/external/v8/test/cctest/compiler/ |
test-pipeline.cc | 12 #include "src/rewriter.h" 26 CHECK(Rewriter::Rewrite(&info));
|
/external/clang/include/clang/Tooling/ |
Refactoring.h | 11 // While single translation unit refactorings are supported via the Rewriter, 28 class Rewriter; 53 /// \brief Apply all stored replacements to the given Rewriter. 59 bool applyAllReplacements(Rewriter &Rewrite); 63 int saveRewrittenFiles(Rewriter &Rewrite);
|
/external/v8/src/ |
rewriter.h | 13 class Rewriter {
|
/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 115 Rewriter Rewrite;
|
/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
|