swig/Source/CParse
Marcelo Matus c41374becc %rename(x) Foo::y();
%inline %{
class Foo {
protected:
    void x();
public:
    void y();
};

%}

will work in plain or plain director mode, but it will complain the
same as before with director protected support.

The reason is that the parser emmits the warning, and at that stage it
is not possible to decide if the protected Foo::x() could or not
conflict with the renamed Foo::y(), since Foo::x() could be virtual,
even when no "virtual" attribute is used.



Core:
 parser.y: Detect the dirprot mode and prevents the generation of
           protected symbols at the parsing stage.
 lang.cxx: Export the director_protected_mode for parser.y and the
           director protected member detection is much cleaner.
 main.cxx: Fix the -dirprot flag, it was working in SWIG_FEATURE but
           not in the command line.(minor thing not relate to the error).
 swigmod.h: added Lang::dirprot_mode() for cleaner detection.
 utils.cxx: is_member_director() centralizes and improve the test.

Test suite:
 protected_rename.i: added %inline, so it can compile now.
 director_protected.i: more cases, checking using %rename.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5530 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-10 23:10:31 +00:00
..
.cvsignore *** empty log message *** 2003-01-22 08:11:51 +00:00
cparse.h swigver.h removed 2002-12-11 22:30:54 +00:00
cscanner.c Further patch to :: space handling. 2003-08-11 17:55:04 +00:00
parser.y %rename(x) Foo::y(); 2003-12-10 23:10:31 +00:00
templ.c Major refactoring of DOH List/Hash iterators. See CHANGES 2003-09-11 20:26:57 +00:00
util.c Fixed [ 836903 ] C++ inconsistency (with void arguments). 2003-11-25 18:26:03 +00:00