From c25e2d919ed81841a22bb3eb9b25756123b4d77d Mon Sep 17 00:00:00 2001 From: Jan Jezabek Date: Thu, 7 Aug 2008 19:26:53 +0000 Subject: Added "overloads_base" attribute for functions overloading a name from a base class. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-jezabek@10741 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/allocate.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Modules/allocate.cxx b/Source/Modules/allocate.cxx index ff1ba801c..74290f156 100644 --- a/Source/Modules/allocate.cxx +++ b/Source/Modules/allocate.cxx @@ -390,7 +390,13 @@ class Allocate:public Dispatcher { } if (both_have_public_access || both_have_protected_access) return 1; + } else if (is_public(base) && is_public(n) && !is_non_public_base(inclass, b)) { + // The name is being overloaded - mark it + Setattr(n, "overloads_base", base); } + } else if (is_public(base) && is_public(n) && !is_non_public_base(inclass, b)) { + // The name is being overloaded - mark it + Setattr(n, "overloads_base", base); } } } -- cgit v1.2.1