summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/cstylecast.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/compilerplugins/clang/cstylecast.cxx b/compilerplugins/clang/cstylecast.cxx
index bce3e0f5e8ad..7c410733fd96 100644
--- a/compilerplugins/clang/cstylecast.cxx
+++ b/compilerplugins/clang/cstylecast.cxx
@@ -103,7 +103,13 @@ bool CStyleCast::VisitCStyleCastExpr(const CStyleCastExpr * expr) {
}
} else {
if (filename.startswith(SRCDIR "/include/tools/solar.h")
- || filename.startswith(SRCDIR "/include/cppuhelper/")) {
+ || filename.startswith(SRCDIR "/include/cppuhelper/")
+ || ((StringRef(
+ compiler.getSourceManager().getFileEntryForID(
+ compiler.getSourceManager().getMainFileID())
+ ->getName())
+ == SRCDIR "/jurt/source/pipe/staticsalhack.cxx")
+ && filename.startswith(SRCDIR "/sal/"))) {
return true;
}
}