loplugin:cstylecast: sal

Change-Id: I0ad9681a8b31d78cefce5b66040415154a1c7a99
This commit is contained in:
Stephan Bergmann
2015-01-06 22:21:33 +01:00
parent d1a74c273d
commit 7b1261f6f9
7 changed files with 49 additions and 77 deletions

View File

@@ -97,19 +97,12 @@ bool CStyleCast::VisitCStyleCastExpr(const CStyleCastExpr * expr) {
return true;
}
if ( compat::isInMainFile(compiler.getSourceManager(), spellingLocation) ) {
if (filename.startswith(SRCDIR "/sal/") // sal has tons of weird stuff going on that I don't understand enough to fix
|| filename.startswith(SRCDIR "/bridges/")) { // I'm not messing with this code - far too dangerous
if (filename.startswith(SRCDIR "/bridges/")) { // I'm not messing with this code - far too dangerous
return true;
}
} else {
if (filename == SRCDIR "/include/tools/solar.h"
|| filename.startswith(SRCDIR "/include/cppuhelper/")
|| ((StringRef(
compiler.getSourceManager().getFileEntryForID(
compiler.getSourceManager().getMainFileID())
->getName())
== SRCDIR "/jurt/source/pipe/staticsalhack.cxx")
&& filename.startswith(SRCDIR "/sal/"))) {
|| filename.startswith(SRCDIR "/include/cppuhelper/")) {
return true;
}
}