/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/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; 54 * DexRewriter rewriter = new DexRewriter(new RewriterModule() { 55 * public Rewriter<String> getTypeRewriter(Rewriters rewriters) { 56 * return new Rewriter<String>() { 66 * DexFile rewrittenDexFile = rewriter.rewriteDexFile(dexFile); 71 private final Rewriter<ClassDef> classDefRewriter; 72 private final Rewriter<Field> fieldRewriter; 73 private final Rewriter<Method> methodRewriter; 74 private final Rewriter<MethodParameter> methodParameterRewriter; 75 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...] |
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> {
|
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...] |
AnnotationElementRewriter.java | 32 package org.jf.dexlib2.rewriter; 40 public class AnnotationElementRewriter implements Rewriter<AnnotationElement> {
|
AnnotationRewriter.java | 32 package org.jf.dexlib2.rewriter; 41 public class AnnotationRewriter implements Rewriter<Annotation> {
|
ExceptionHandlerRewriter.java | 32 package org.jf.dexlib2.rewriter; 40 public class ExceptionHandlerRewriter implements Rewriter<ExceptionHandler> {
|
FieldReferenceRewriter.java | 32 package org.jf.dexlib2.rewriter; 39 public class FieldReferenceRewriter implements Rewriter<FieldReference> {
|
/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);
|
RewriteBuffer.h | 19 class Rewriter; 28 friend class Rewriter; 52 /// Rewriter::overwriteChangedFiles() instead. 90 private: // Methods only usable by Rewriter.
|
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/include/clang/Tooling/ |
Refactoring.h | 11 // While single translation unit refactorings are supported via the Rewriter, 28 class Rewriter; 55 /// \brief Apply all stored replacements to the given Rewriter. 61 bool applyAllReplacements(Rewriter &Rewrite); 65 int saveRewrittenFiles(Rewriter &Rewrite);
|
/external/v8/src/parsing/ |
rewriter.h | 16 class Rewriter {
|
parameter-initializer-rewriter.cc | 5 #include "src/parsing/parameter-initializer-rewriter.h" 17 class Rewriter final : public AstExpressionVisitor { 19 Rewriter(uintptr_t stack_limit, Expression* initializer, Scope* old_scope, 37 void Rewriter::VisitFunctionLiteral(FunctionLiteral* function_literal) { 42 void Rewriter::VisitClassLiteral(ClassLiteral* class_literal) { 62 void Rewriter::VisitVariableProxy(VariableProxy* proxy) { 82 Rewriter rewriter(stack_limit, initializer, old_scope, new_scope); 83 rewriter.Run();
|
/external/clang/lib/Tooling/ |
Refactoring.cpp | 19 #include "clang/Rewrite/Core/Rewriter.h" 47 Rewriter Rewrite(Sources, DefaultLangOptions); 56 bool RefactoringTool::applyAllReplacements(Rewriter &Rewrite) { 60 int RefactoringTool::saveRewrittenFiles(Rewriter &Rewrite) {
|
/external/clang/unittests/Tooling/ |
RewriterTest.cpp | 18 TEST(Rewriter, OverwritesChangedFiles) { 27 TEST(Rewriter, ContinuesOverwritingFilesOnError) { 40 TEST(Rewriter, AdjacentInsertAndDelete) {
|
/external/clang/include/clang/Tooling/Core/ |
Replacement.h | 11 // While single translation unit refactorings are supported via the Rewriter, 31 class Rewriter; 113 /// \brief Applies the replacement on the Rewriter. 114 bool apply(Rewriter &Rewrite) const; 143 /// \brief Apply all replacements in \p Replaces to the Rewriter \p Rewrite. 149 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite); 151 /// \brief Apply all replacements in \p Replaces to the Rewriter \p Rewrite. 158 Rewriter &Rewrite); 200 /// \brief Apply all replacements in \p Replaces to the Rewriter \p Rewrite. 206 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite) [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" 66 /// \brief The rewriter used to perform the various code 68 Rewriter Rewrite; 79 /// \brief The number of rewriter failures. 86 typedef Rewriter::buffer_iterator iterator; 88 /// \brief Initialize a new fix-it rewriter. 92 /// \brief Destroy the fix-it rewriter.
|
FrontendActions.h | 31 std::unique_ptr<FixItRewriter> Rewriter;
|
/external/clang/lib/Rewrite/ |
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...] |
Android.mk | 19 Rewriter.cpp \
|
/external/llvm/lib/Transforms/Scalar/ |
IndVarSimplify.cpp | 132 void simplifyAndExtend(Loop *L, SCEVExpander &Rewriter, LoopInfo *LI); 135 void rewriteLoopExitValues(Loop *L, SCEVExpander &Rewriter); 138 PHINode *IndVar, SCEVExpander &Rewriter); 142 Value *expandSCEVIfNeeded(SCEVExpander &Rewriter, const SCEV *S, Loop *L, 162 /// Return true if the SCEV expansion generated by the rewriter can replace the 514 Value *IndVarSimplify::expandSCEVIfNeeded(SCEVExpander &Rewriter, const SCEV *S, 519 if (Value *ExistingValue = Rewriter.findExistingExpansion(S, InsertPt, L)) 524 return Rewriter.expandCodeFor(S, ResultTy, InsertPt); 542 void IndVarSimplify::rewriteLoopExitValues(Loop *L, SCEVExpander &Rewriter) { 659 bool HighCost = Rewriter.isHighCostExpansion(ExitValue, L, Inst) [all...] |