always use the report() helper
Change-Id: I2966fdb5bd98b1ddf718079584acf90a3e3a3700
This commit is contained in:
@@ -27,6 +27,12 @@ Plugin::Plugin( ASTContext& context )
|
||||
}
|
||||
|
||||
DiagnosticBuilder Plugin::report( DiagnosticsEngine::Level level, StringRef message, SourceLocation loc )
|
||||
{
|
||||
return report( level, message, context, loc );
|
||||
}
|
||||
|
||||
DiagnosticBuilder Plugin::report( DiagnosticsEngine::Level level, StringRef message, ASTContext& context,
|
||||
SourceLocation loc )
|
||||
{
|
||||
DiagnosticsEngine& diag = context.getDiagnostics();
|
||||
#if 0
|
||||
@@ -168,9 +174,7 @@ bool RewritePlugin::replaceText( SourceRange range, SourceRange replacementRange
|
||||
|
||||
bool RewritePlugin::reportEditFailure( SourceLocation loc )
|
||||
{
|
||||
DiagnosticsEngine& diag = context.getDiagnostics();
|
||||
diag.Report( loc, diag.getCustomDiagID( DiagnosticsEngine::Warning,
|
||||
"cannot perform source modification (macro expansion involved?) [loplugin]" ));
|
||||
report( DiagnosticsEngine::Warning, "cannot perform source modification (macro expansion involved?) [loplugin]", loc );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user