HomeSort by relevance Sort by last modified time
    Searched refs:Rewriter (Results 1 - 25 of 37) sorted by null

1 2

  /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 97 Rewriter.reset(new FixItRewriter(CI.getDiagnostics(), CI.getSourceManager(),
104 Rewriter->WriteFixedFiles();
123 FixItRewriter Rewriter(CI.getDiagnostics(), CI.getSourceManager(),
127 err = Rewriter.WriteFixedFiles(&RewrittenFiles);
HTMLPrint.cpp 23 #include "clang/Rewrite/Core/Rewriter.h"
34 Rewriter R;
FixItRewriter.cpp 1 //===--- FixItRewriter.cpp - Fix-It Rewriter Diagnostic Client --*- C++ -*-===//
60 Rewriter &Rewrite;
63 RewritesReceiver(Rewriter &Rewrite) : Rewrite(Rewrite) { }
RewriteMacros.cpp 18 #include "clang/Rewrite/Core/Rewriter.h"
93 Rewriter Rewrite;
  /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) {}
  /external/chromium_org/v8/src/
rewriter.h 36 class Rewriter {
  /external/v8/src/
rewriter.h 36 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
114 Rewriter Rewrite;
  /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/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.
FrontendActions.h 31 OwningPtr<FixItRewriter> Rewriter;
  /external/clang/lib/Rewrite/Core/
Android.mk 26 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"
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...]
HTMLRewrite.cpp 19 #include "clang/Rewrite/Core/Rewriter.h"
32 void html::HighlightRange(Rewriter &R, SourceLocation B, SourceLocation E,
106 void html::EscapeText(Rewriter &R, FileID FID,
226 void html::AddLineNumbers(Rewriter& R, FileID FID) {
270 void html::AddHeaderFooterInternalBuiltinCSS(Rewriter& R, FileID FID,
357 void html::SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP) {
446 void html::HighlightMacros(Rewriter &R, FileID FID, const Preprocessor& PP) {
  /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
  /external/clang/tools/libclang/
SimpleFormatContext.h 24 #include "clang/Rewrite/Core/Rewriter.h"
70 Rewriter Rewrite;
  /external/llvm/lib/Transforms/Scalar/
IndVarSimplify.cpp 108 void SimplifyAndExtend(Loop *L, SCEVExpander &Rewriter, LPPassManager &LPM);
110 void RewriteLoopExitValues(Loop *L, SCEVExpander &Rewriter);
113 PHINode *IndVar, SCEVExpander &Rewriter);
135 /// rewriter can replace the original value. SCEV guarantees that it
477 void IndVarSimplify::RewriteLoopExitValues(Loop *L, SCEVExpander &Rewriter) {
577 Value *ExitVal = Rewriter.expandCodeFor(ExitValue, PN->getType(), Inst);
617 // so that the rewriter doesn't trip over it later.
618 Rewriter.clearInsertPoint();
740 PHINode *CreateWideIV(SCEVExpander &Rewriter);
752 Instruction *WidenIVUse(NarrowIVDefUse DU, SCEVExpander &Rewriter);
    [all...]
LoopStrengthReduce.cpp     [all...]
  /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/StaticAnalyzer/Core/
HTMLDiagnostics.cpp 22 #include "clang/Rewrite/Core/Rewriter.h"
58 void HandlePiece(Rewriter& R, FileID BugFileID,
61 void HighlightRange(Rewriter& R, FileID BugFileID, SourceRange Range,
128 // Create a new rewriter to generate HTML.
129 Rewriter R(const_cast<SourceManager&>(SMgr), PP.getLangOpts());
268 void HTMLDiagnostics::HandlePiece(Rewriter& R, FileID BugFileID,
519 void HTMLDiagnostics::HighlightRange(Rewriter& R, FileID BugFileID,
  /external/clang/lib/ARCMigrate/
ARCMT.cpp 19 #include "clang/Rewrite/Core/Rewriter.h"
513 Rewriter &rewriter; member in class:__anon18380::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...]
  /external/clang/tools/clang-check/
ClangCheck.cpp 130 Rewriter.reset(new FixItRewriter(CI.getDiagnostics(), CI.getSourceManager(),

Completed in 1043 milliseconds

1 2