diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-06 14:34:34 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-06 14:34:34 +0100 |
commit | 1b9d9680d9c444a126413ebb996b3bf6b2085de5 (patch) | |
tree | b0f00d2c216cc6854e23ab2073a853ba825f054a /compilerplugins | |
parent | 8d2501feb2a43e11bd144581bb7ffc7684d1afec (diff) |
Work around loplugin:cstylecast under -fsanitize=*
Change-Id: I467d032296607d22e850c95e56c452fe7e62cebe
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/cstylecast.cxx | 8 |
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; } } |