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

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: Fix lifetime issue where BindMigrateAction is deleted before the ASTConsumer is finished. Created 9 years, 2 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
« no previous file with comments | « tools/clang/BindMigrate/CMakeLists.txt ('k') | tools/clang/BindMigrate/DiagnosticEmitter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef TOOL_CLANG_BINDMIGRATE_DIAGNOSTIC_EMITTER_H_
6 #define TOOL_CLANG_BINDMIGRATE_DIAGNOSTIC_EMITTER_H_
7
8 #include <string>
9
10 namespace clang {
11
12 class CompilerInstance;
13 class Diagnostic;
14 class SourceLocation;
15
16 class DiagnosticEmitter {
17 public:
18 DiagnosticEmitter(clang::CompilerInstance* instance,
19 const std::string& name);
20
21 void EmitWarning(clang::SourceLocation loc, const char* raw_error);
22 void EmitError(clang::SourceLocation loc, const char* raw_error);
23
24 private:
25 std::string name_;
26 clang::CompilerInstance* instance_;
27 clang::Diagnostic* diagnostic_;
28 };
29
30 } // namespace clang
31
32 #endif // TOOL_CLANG_BINDMIGRATE_DIAGNOSTIC_EMITTER_H_
OLDNEW
« no previous file with comments | « tools/clang/BindMigrate/CMakeLists.txt ('k') | tools/clang/BindMigrate/DiagnosticEmitter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698