HomeSort by relevance Sort by last modified time
    Searched full:rewriter (Results 1 - 25 of 81) sorted by null

1 2 3 4

  /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)
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;
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/Tooling/
Refactoring.h 11 // While single translation unit refactorings are supported via the Rewriter,
30 class Rewriter;
80 /// \brief Applies the replacement on the Rewriter.
81 bool apply(Rewriter &Rewrite) const;
108 /// \brief Apply all replacements in \p Replaces to the Rewriter \p Rewrite.
114 bool applyAllReplacements(Replacements &Replaces, Rewriter &Rewrite);
137 /// \brief Apply all stored replacements to the given Rewriter.
143 bool applyAllReplacements(Rewriter &Rewrite);
147 int 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.
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
69 llvm::sys::fs::unique_file("rewriter-test-%%-%%-%%-%%/anchor", FD,
120 Rewriter Rewrite;
RewriterTest.cpp 15 TEST(Rewriter, OverwritesChangedFiles) {
24 TEST(Rewriter, ContinuesOverwritingFilesOnError) {
  /external/clang/lib/ARCMigrate/
ObjCMT.cpp 25 #include "clang/Rewrite/Core/Rewriter.h"
190 Rewriter &Rewrite;
193 RewritesReceiver(Rewriter &Rewrite) : Rewrite(Rewrite) { }
206 Rewriter rewriter(Ctx.getSourceManager(), Ctx.getLangOpts());
207 RewritesReceiver Rec(rewriter);
210 for (Rewriter::buffer_iterator
211 I = rewriter.buffer_begin(), E = rewriter.buffer_end(); I != E; ++I) {
ARCMT.cpp 19 #include "clang/Rewrite/Core/Rewriter.h"
507 Rewriter &rewriter; member in class:__anon5547::RewritesApplicator
511 RewritesApplicator(Rewriter &rewriter, ASTContext &ctx,
513 : rewriter(rewriter), Listener(listener) {
523 bool err = rewriter.InsertText(loc, text, /*InsertAfter=*/true,
530 Rewriter::RewriteOptions removeOpts;
535 bool err = rewriter.RemoveText(range, removeOpts)
    [all...]
  /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) {
156 Rewriter Rewrite(Sources, DefaultLangOptions);
165 bool RefactoringTool::applyAllReplacements(Rewriter &Rewrite) {
169 int RefactoringTool::saveRewrittenFiles(Rewriter &Rewrite) {
170 for (Rewriter::buffer_iterator I = Rewrite.buffer_begin(),
174 // 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
  /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/v8/src/
rewriter.h 36 class Rewriter {

Completed in 5550 milliseconds

1 2 3 4