[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Fri Feb 14 16:06:45 CET 2014
compilerplugins/clang/plugin.cxx | 2 +-
compilerplugins/clang/plugin.hxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit f7e335ddb7223d421dc479c9bf8f1d8e710a9d30
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Feb 14 15:54:59 2014 +0100
const improvement
Change-Id: I03815f33117a2927b1882d221f159a5de8d3ba78
diff --git a/compilerplugins/clang/plugin.cxx b/compilerplugins/clang/plugin.cxx
index 2aff6cf..626e55a 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 5af4b04..ff868bf 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 );
More information about the Libreoffice-commits
mailing list