const improvement

Change-Id: I03815f33117a2927b1882d221f159a5de8d3ba78
This commit is contained in:
Stephan Bergmann
2014-02-14 15:54:59 +01:00
parent 4eb7f39119
commit f7e335ddb7
2 changed files with 2 additions and 2 deletions

View File

@@ -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 );
}

View File

@@ -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 );