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

Side by Side Diff: tools/clang/BindMigrate/DiagnosticEmitter.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 DIAGNOSTIC_EMITTER_H_
5 #define DIAGNOSTIC_EMITTER_H_
6
7 #include <string>
8
9 namespace clang {
10
11 class CompilerInstance;
12 class Diagnostic;
13 class SourceLocation;
14
15 class DiagnosticEmitter {
16 public:
17 DiagnosticEmitter(clang::CompilerInstance* instance,
18 const std::string& name);
19
20 void EmitWarning(clang::SourceLocation loc, const char* raw_error);
21 void EmitError(clang::SourceLocation loc, const char* raw_error);
22
23 private:
24 std::string name_;
25 clang::CompilerInstance* instance_;
26 clang::Diagnostic* diagnostic_;
27 };
28
29 } // namespace clang
30
31 #endif // DIAGNOSTIC_EMITTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698