remove debug output
Change-Id: I719ce8870320f3bddd68fe26cf2c2b941e0a9403
This commit is contained in:
@@ -58,13 +58,13 @@ bool SalLogAreas::VisitCallExpr( CallExpr* call )
|
|||||||
if( area->getKind() == StringLiteral::Ascii )
|
if( area->getKind() == StringLiteral::Ascii )
|
||||||
checkArea( area->getBytes(), area->getExprLoc());
|
checkArea( area->getBytes(), area->getExprLoc());
|
||||||
else
|
else
|
||||||
report( DiagnosticsEngine::Warning, "unsupported string literal kind (plugin needs fixing?) [loplugin] sallog",
|
report( DiagnosticsEngine::Warning, "unsupported string literal kind (plugin needs fixing?) [loplugin]",
|
||||||
area->getLocStart());
|
area->getLocStart());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if( inFunction->getQualifiedNameAsString() == "sal::detail::log" )
|
if( inFunction->getQualifiedNameAsString() == "sal::detail::log" )
|
||||||
return true; // This function only forwards to sal_detail_log, so ok.
|
return true; // This function only forwards to sal_detail_log, so ok.
|
||||||
report( DiagnosticsEngine::Warning, "cannot analyse log area argument (plugin needs fixing?) [loplugin] sallog",
|
report( DiagnosticsEngine::Warning, "cannot analyse log area argument (plugin needs fixing?) [loplugin]",
|
||||||
call->getLocStart());
|
call->getLocStart());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -78,7 +78,7 @@ void SalLogAreas::checkArea( StringRef area, SourceLocation location )
|
|||||||
readLogAreas();
|
readLogAreas();
|
||||||
if( !logAreas.count( area ))
|
if( !logAreas.count( area ))
|
||||||
{
|
{
|
||||||
report( DiagnosticsEngine::Warning, "unknown log area '%0' (check or extend sal/inc/sal/log-areas.dox) [loplugin] sallog",
|
report( DiagnosticsEngine::Warning, "unknown log area '%0' (check or extend sal/inc/sal/log-areas.dox) [loplugin]",
|
||||||
location ) << area;
|
location ) << area;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -107,7 +107,7 @@ void SalLogAreas::readLogAreas()
|
|||||||
}
|
}
|
||||||
// If you get this error message, you possibly have too old icecream (ICECC_EXTRAFILES is needed).
|
// If you get this error message, you possibly have too old icecream (ICECC_EXTRAFILES is needed).
|
||||||
if( logAreas.empty())
|
if( logAreas.empty())
|
||||||
report( DiagnosticsEngine::Warning, "error reading log areas [loplugin] sallog" );
|
report( DiagnosticsEngine::Warning, "error reading log areas [loplugin]" );
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
Reference in New Issue
Block a user