Kaydet (Commit) 1b9d9680 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Work around loplugin:cstylecast under -fsanitize=*

Change-Id: I467d032296607d22e850c95e56c452fe7e62cebe
üst 8d2501fe
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment