summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-06 22:21:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-07 14:42:07 +0100
commit7b1261f6f956271ec2a545f635e11432a5e64fa1 (patch)
tree60419323374af92164590d274134a3e7f0c6eae6 /compilerplugins
parentd1a74c273d10e6ab228acac2b8ebc151362a41b3 (diff)
loplugin:cstylecast: sal
Change-Id: I0ad9681a8b31d78cefce5b66040415154a1c7a99
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/cstylecast.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/compilerplugins/clang/cstylecast.cxx b/compilerplugins/clang/cstylecast.cxx
index c14436d65f7d..6fbf60b66ab7 100644
--- a/compilerplugins/clang/cstylecast.cxx
+++ b/compilerplugins/clang/cstylecast.cxx
@@ -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;
}
}