summaryrefslogtreecommitdiff
path: root/compilerplugins/clang
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-14 15:54:59 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-14 16:04:31 +0100
commitf7e335ddb7223d421dc479c9bf8f1d8e710a9d30 (patch)
tree7107a4e1d331643b7c03095ad37493df6a7ef20d /compilerplugins/clang
parent4eb7f3911921817a8f8d56a2bafb54d1fd12afcd (diff)
const improvement
Change-Id: I03815f33117a2927b1882d221f159a5de8d3ba78
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r--compilerplugins/clang/plugin.cxx2
-rw-r--r--compilerplugins/clang/plugin.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/plugin.cxx b/compilerplugins/clang/plugin.cxx
index 2aff6cf0c7b5..626e55a624ac 100644
--- a/compilerplugins/clang/plugin.cxx
+++ b/compilerplugins/clang/plugin.cxx
@@ -29,7 +29,7 @@ Plugin::Plugin( const InstantiationData& data )
{
}
-DiagnosticBuilder Plugin::report( DiagnosticsEngine::Level level, StringRef message, SourceLocation loc )
+DiagnosticBuilder Plugin::report( DiagnosticsEngine::Level level, StringRef message, SourceLocation loc ) const
{
return handler.report( level, name, message, compiler, loc );
}
diff --git a/compilerplugins/clang/plugin.hxx b/compilerplugins/clang/plugin.hxx
index 5af4b04619ce..ff868bf1718f 100644
--- a/compilerplugins/clang/plugin.hxx
+++ b/compilerplugins/clang/plugin.hxx
@@ -62,7 +62,7 @@ class Plugin
// Returns location right after the end of the token that starts at the given location.
SourceLocation locationAfterToken( SourceLocation location );
protected:
- DiagnosticBuilder report( DiagnosticsEngine::Level level, StringRef message, SourceLocation loc = SourceLocation());
+ DiagnosticBuilder report( DiagnosticsEngine::Level level, StringRef message, SourceLocation loc = SourceLocation()) const;
bool ignoreLocation( SourceLocation loc );
bool ignoreLocation( const Decl* decl );
bool ignoreLocation( const Stmt* stmt );