summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/plugin.hxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-02-02 19:31:24 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-02-02 22:59:45 +0100
commitb4392c575e5aaf31ccf0813a20450187df37cf59 (patch)
treed4ff38959cfbca91ba1c8bcef3b8280cab860c58 /compilerplugins/clang/plugin.hxx
parentefe9bf61ed408e94a9171992c1582e00f21d209e (diff)
always use the report() helper
Change-Id: I2966fdb5bd98b1ddf718079584acf90a3e3a3700
Diffstat (limited to 'compilerplugins/clang/plugin.hxx')
-rw-r--r--compilerplugins/clang/plugin.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/compilerplugins/clang/plugin.hxx b/compilerplugins/clang/plugin.hxx
index 014329e12eb1..f7f8e9f10382 100644
--- a/compilerplugins/clang/plugin.hxx
+++ b/compilerplugins/clang/plugin.hxx
@@ -41,8 +41,10 @@ class Plugin
virtual ~Plugin();
virtual void run() = 0;
template< typename T > class Registration;
- protected:
DiagnosticBuilder report( DiagnosticsEngine::Level level, StringRef message, SourceLocation loc = SourceLocation());
+ static DiagnosticBuilder report( DiagnosticsEngine::Level level, StringRef message,
+ ASTContext& context, SourceLocation loc = SourceLocation());
+ protected:
bool ignoreLocation( SourceLocation loc );
bool ignoreLocation( const Decl* decl );
bool ignoreLocation( const Stmt* stmt );