loplugin:cstylecast: No need to exclude include/cppuhelper
Change-Id: Ie74be926c1e071fa9b311920b1cf1d4dd5bbd30d
This commit is contained in:
@@ -96,11 +96,6 @@ bool CStyleCast::VisitCStyleCastExpr(const CStyleCastExpr * expr) {
|
|||||||
if ( filename.endswith(".h") ) {
|
if ( filename.endswith(".h") ) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (!compat::isInMainFile(compiler.getSourceManager(), spellingLocation)
|
|
||||||
&& filename.startswith(SRCDIR "/include/cppuhelper/"))
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
report(
|
report(
|
||||||
DiagnosticsEngine::Warning,
|
DiagnosticsEngine::Warning,
|
||||||
"c-style cast, type=%0, from=%1%2, to=%3%4, recommendedFix=%5",
|
"c-style cast, type=%0, from=%1%2, to=%3%4, recommendedFix=%5",
|
||||||
|
Reference in New Issue
Block a user