tools/solar.h already filtered out via filename.endsWith(".h")

Change-Id: I8a4483a6425f51fea0eae5c809c6c41ef56388a2
This commit is contained in:
Stephan Bergmann
2015-01-06 23:00:11 +01:00
parent 25fb442651
commit a4b0078ba9

View File

@@ -97,8 +97,7 @@ bool CStyleCast::VisitCStyleCastExpr(const CStyleCastExpr * expr) {
return true;
}
if (!compat::isInMainFile(compiler.getSourceManager(), spellingLocation)
&& (filename == SRCDIR "/include/tools/solar.h"
|| filename.startswith(SRCDIR "/include/cppuhelper/")))
&& filename.startswith(SRCDIR "/include/cppuhelper/"))
{
return true;
}