[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Wed Jan 7 11:26:36 PST 2015
compilerplugins/clang/cstylecast.cxx | 5 -----
1 file changed, 5 deletions(-)
New commits:
commit 61e02d6ffc477174d9797ea45a41cc50c955372b
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Jan 7 20:25:52 2015 +0100
loplugin:cstylecast: No need to exclude include/cppuhelper
Change-Id: Ie74be926c1e071fa9b311920b1cf1d4dd5bbd30d
diff --git a/compilerplugins/clang/cstylecast.cxx b/compilerplugins/clang/cstylecast.cxx
index 496fe90..5492dc4 100644
--- a/compilerplugins/clang/cstylecast.cxx
+++ b/compilerplugins/clang/cstylecast.cxx
@@ -96,11 +96,6 @@ bool CStyleCast::VisitCStyleCastExpr(const CStyleCastExpr * expr) {
if ( filename.endswith(".h") ) {
return true;
}
- if (!compat::isInMainFile(compiler.getSourceManager(), spellingLocation)
- && filename.startswith(SRCDIR "/include/cppuhelper/"))
- {
- return true;
- }
report(
DiagnosticsEngine::Warning,
"c-style cast, type=%0, from=%1%2, to=%3%4, recommendedFix=%5",
More information about the Libreoffice-commits
mailing list