diff options
author | Jan Jezabek <jezabek@poczta.onet.pl> | 2008-08-07 19:26:53 +0000 |
---|---|---|
committer | Jan Jezabek <jezabek@poczta.onet.pl> | 2008-08-07 19:26:53 +0000 |
commit | c25e2d919ed81841a22bb3eb9b25756123b4d77d (patch) | |
tree | e4be285cb1dfd1f3e0ced206daa3c4cb5f917f9f /Source/Modules | |
parent | dba08849265744b9391ab38836ba0afa2dc9fcd4 (diff) | |
download | swig-c25e2d919ed81841a22bb3eb9b25756123b4d77d.tar.gz |
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
Diffstat (limited to 'Source/Modules')
-rw-r--r-- | Source/Modules/allocate.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
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); } } } |