Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: tools/clang/BindMigrate/BindMigrateConsumer.h

Issue 7886056: Clang plugin that rewrites PostTask(_, NewRunnableMethod(...)) to PostTask(_, base::Bind(...)); (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: break into files and make saner Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2011 Google Inc. All Rights Reserved.
2 // Author: ajwong@google.com (Albert Wong)
3
4 #ifndef BIND_MIGRATE_CONSUSUMER_H_
5 #define BIND_MIGRATE_CONSUSUMER_H_
6
7 #include "clang/AST/ASTConsumer.h"
8 #include "clang/Basic/SourceLocation.h"
9 #include "clang/Rewrite/Rewriter.h"
10
11 #include "DiagnosticEmitter.h"
12
13 namespace clang {
14
15 namespace arcmt_hack {
16 class FileRemapper;
17 } // namespace arcmt_hack
18
19 class DiagnosticEmitter;
20
21 class BindMigrateConsumer : public clang::ASTConsumer {
22 public:
23 BindMigrateConsumer(clang::CompilerInstance* instance,
24 arcmt_hack::FileRemapper* remapper);
25 virtual ~BindMigrateConsumer();
26
27 virtual void Initialize(clang::ASTContext &context);
28 virtual void HandleTranslationUnit(clang::ASTContext &context);
29
30 private:
31 clang::CompilerInstance* instance_;
32 DiagnosticEmitter error_emitter_;
33 clang::FileID source_file_;
34 clang::Rewriter rewriter_;
35 arcmt_hack::FileRemapper* remapper_;
36 };
37
38 } // namespace clang
39
40
41 #endif // BIND_MIGRATE_CONSUSUMER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698