summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/datamembershadow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/datamembershadow.cxx')
-rw-r--r--compilerplugins/clang/datamembershadow.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/compilerplugins/clang/datamembershadow.cxx b/compilerplugins/clang/datamembershadow.cxx
index 520e1195f0ca..54e671daffa1 100644
--- a/compilerplugins/clang/datamembershadow.cxx
+++ b/compilerplugins/clang/datamembershadow.cxx
@@ -19,6 +19,7 @@
* Check for data member being shadowed.
*
* @TODO check for any members in superclass hierarchy with duplicate names,
+ * regardless of their visibility,
* more specific names will make the code easier to read
*/
namespace
@@ -84,12 +85,8 @@ bool DataMemberShadow::VisitFieldDecl(FieldDecl const * fieldDecl)
if (loplugin::isSamePathname(aFileName, SRCDIR "/store/source/stortree.hxx")
|| loplugin::isSamePathname(aFileName, SRCDIR "/store/source/stordata.hxx"))
return true;
- if (loplugin::isSamePathname(aFileName, SRCDIR "/svx/source/inc/cell.hxx"))
- return true;
if (loplugin::isSamePathname(aFileName, SRCDIR "/sw/source/uibase/inc/dbtree.hxx"))
return true;
- if (loplugin::isSamePathname(aFileName, SRCDIR "/vcl/unx/generic/print/genpspgraphics.cxx"))
- return true;
const CXXRecordDecl* parentCXXRecordDecl = dyn_cast<CXXRecordDecl>(fieldDecl->getDeclContext());
if (!parentCXXRecordDecl) {