summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-07 20:25:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-07 20:26:04 +0100
commit61e02d6ffc477174d9797ea45a41cc50c955372b (patch)
treeada32433720bd5908265f969f17bf03276185127 /compilerplugins
parentc0b938b0a1afe3313b2b5f15484debcf35a980b7 (diff)
loplugin:cstylecast: No need to exclude include/cppuhelper
Change-Id: Ie74be926c1e071fa9b311920b1cf1d4dd5bbd30d
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/cstylecast.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/compilerplugins/clang/cstylecast.cxx b/compilerplugins/clang/cstylecast.cxx
index 496fe906c1b0..5492dc4eefb9 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",