diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-02-02 19:38:56 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-02-02 22:59:45 +0100 |
commit | f5ee30c3eeb104c9178646b8a098e882593ea4df (patch) | |
tree | b4af123c8aba0382dea99a169668e89a82b94a00 /compilerplugins/clang/pluginhandler.cxx | |
parent | b4392c575e5aaf31ccf0813a20450187df37cf59 (diff) |
append [loplugin] automatically in report() rathen than manually everywhere
Change-Id: I2f98622f152ae0c7ac8d1113d6380f686ac7234c
Diffstat (limited to 'compilerplugins/clang/pluginhandler.cxx')
-rw-r--r-- | compilerplugins/clang/pluginhandler.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compilerplugins/clang/pluginhandler.cxx b/compilerplugins/clang/pluginhandler.cxx index 1c36ede707f8..3282ef00c77f 100644 --- a/compilerplugins/clang/pluginhandler.cxx +++ b/compilerplugins/clang/pluginhandler.cxx @@ -61,7 +61,7 @@ PluginHandler::PluginHandler( ASTContext& context, const vector< string >& args } pluginObjectsCreated = true; if( !args.empty() && !wasCreated ) - report( DiagnosticsEngine::Fatal, "unknown plugin tool %0 [loplugin]" ) << args.front(); + report( DiagnosticsEngine::Fatal, "unknown plugin tool %0" ) << args.front(); } PluginHandler::~PluginHandler() @@ -126,17 +126,17 @@ void PluginHandler::HandleTranslationUnit( ASTContext& context ) } } if( modifyFile.empty()) - report( DiagnosticsEngine::Warning, "modified source in solver/ : %0 [loplugin]" ) << e->getName(); + report( DiagnosticsEngine::Warning, "modified source in solver/ : %0" ) << e->getName(); } else if( strncmp( e->getName(), WORKDIR, strlen( WORKDIR )) == 0 ) - report( DiagnosticsEngine::Warning, "modified source in workdir/ : %0 [loplugin]" ) << e->getName(); + report( DiagnosticsEngine::Warning, "modified source in workdir/ : %0" ) << e->getName(); else if( strcmp( SRCDIR, BUILDDIR ) != 0 && strncmp( e->getName(), BUILDDIR, strlen( BUILDDIR )) == 0 ) - report( DiagnosticsEngine::Warning, "modified source in build dir : %0 [loplugin]" ) << e->getName(); + report( DiagnosticsEngine::Warning, "modified source in build dir : %0" ) << e->getName(); else if( strncmp( e->getName(), SRCDIR, strlen( SRCDIR )) == 0 ) ; // ok else { - report( DiagnosticsEngine::Warning, "modified source in unknown location, not modifying : %0 [loplugin]" ) + report( DiagnosticsEngine::Warning, "modified source in unknown location, not modifying : %0" ) << e->getName(); continue; // ---> } @@ -157,7 +157,7 @@ void PluginHandler::HandleTranslationUnit( ASTContext& context ) ostream.clear_error(); unlink( filename ); if( !ok ) - report( DiagnosticsEngine::Error, "cannot write modified source to %0 (%1) [loplugin]" ) << modifyFile << error; + report( DiagnosticsEngine::Error, "cannot write modified source to %0 (%1)" ) << modifyFile << error; delete[] filename; } } |