summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-06 21:43:56 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-07 14:42:07 +0100
commit1887d4f5e98960183ebac61d4ac931915e6f8d8d (patch)
treea0e760dedc3ce55d7ce9a55361dfa7a32eb060eb /compilerplugins
parent52e5b6e38a16c902fd5d0b24a1755b934eb37881 (diff)
Minor beautification
Change-Id: I1300d1d696878c1b646decc2841f13d489d3cadc
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/cstylecast.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/cstylecast.cxx b/compilerplugins/clang/cstylecast.cxx
index d6c46365b75b..c14436d65f7d 100644
--- a/compilerplugins/clang/cstylecast.cxx
+++ b/compilerplugins/clang/cstylecast.cxx
@@ -98,11 +98,11 @@ bool CStyleCast::VisitCStyleCastExpr(const CStyleCastExpr * expr) {
}
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
+ || filename.startswith(SRCDIR "/bridges/")) { // I'm not messing with this code - far too dangerous
return true;
}
} else {
- if (filename.startswith(SRCDIR "/include/tools/solar.h")
+ if (filename == SRCDIR "/include/tools/solar.h"
|| filename.startswith(SRCDIR "/include/cppuhelper/")
|| ((StringRef(
compiler.getSourceManager().getFileEntryForID(