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/sallogareas.cxx | |
parent | b4392c575e5aaf31ccf0813a20450187df37cf59 (diff) |
append [loplugin] automatically in report() rathen than manually everywhere
Change-Id: I2f98622f152ae0c7ac8d1113d6380f686ac7234c
Diffstat (limited to 'compilerplugins/clang/sallogareas.cxx')
-rw-r--r-- | compilerplugins/clang/sallogareas.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compilerplugins/clang/sallogareas.cxx b/compilerplugins/clang/sallogareas.cxx index 051c1d7ae9f7..db4453c98ab5 100644 --- a/compilerplugins/clang/sallogareas.cxx +++ b/compilerplugins/clang/sallogareas.cxx @@ -70,7 +70,7 @@ bool SalLogAreas::VisitCallExpr( CallExpr* call ) if( area->getKind() == StringLiteral::Ascii ) checkArea( area->getBytes(), area->getExprLoc()); else - report( DiagnosticsEngine::Warning, "unsupported string literal kind (plugin needs fixing?) [loplugin]", + report( DiagnosticsEngine::Warning, "unsupported string literal kind (plugin needs fixing?)", area->getLocStart()); return true; } @@ -87,11 +87,11 @@ bool SalLogAreas::VisitCallExpr( CallExpr* call ) if( inMacro == "SAL_DEBUG" ) return true; // ok } - report( DiagnosticsEngine::Warning, "missing log area [loplugin]", + report( DiagnosticsEngine::Warning, "missing log area", call->getArg( 1 )->IgnoreParenImpCasts()->getLocStart()); return true; } - report( DiagnosticsEngine::Warning, "cannot analyse log area argument (plugin needs fixing?) [loplugin]", + report( DiagnosticsEngine::Warning, "cannot analyse log area argument (plugin needs fixing?)", call->getLocStart()); } } @@ -105,7 +105,7 @@ void SalLogAreas::checkArea( StringRef area, SourceLocation location ) readLogAreas(); if( !logAreas.count( area )) { - report( DiagnosticsEngine::Warning, "unknown log area '%0' (check or extend sal/inc/sal/log-areas.dox) [loplugin]", + report( DiagnosticsEngine::Warning, "unknown log area '%0' (check or extend sal/inc/sal/log-areas.dox)", location ) << area; } } @@ -130,7 +130,7 @@ void SalLogAreas::readLogAreas() } // If you get this error message, you possibly have too old icecream (ICECC_EXTRAFILES is needed). if( logAreas.empty()) - report( DiagnosticsEngine::Warning, "error reading log areas [loplugin]" ); + report( DiagnosticsEngine::Warning, "error reading log areas" ); } static Plugin::Registration< SalLogAreas > X( "sallogareas" ); |