Updated renaming rules.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8467 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fa47d6befe
commit
2b9b6d9732
1 changed files with 10 additions and 6 deletions
|
|
@ -11,14 +11,18 @@
|
|||
/* Class names are CamelCase */
|
||||
%rename("%(camelcase)s", %isclass) "";
|
||||
|
||||
/* Constants are UPPER_CASE */
|
||||
/* Constants created by %constant or #define are UPPER_CASE */
|
||||
%rename("%(uppercase)s", %isconstant) "";
|
||||
%rename("%(undercase)s", %isvariable,%ismember) "";
|
||||
%rename("%(uppercase)s", %isvariable,%isimmutable) "";
|
||||
%rename("%(uppercase)s", %isvariable,%isstatic,%hasvalue,%hasconsttype) "";
|
||||
|
||||
/* Method names should be changed so that they are
|
||||
lower_case_with_underscores */
|
||||
/* SWIG only considers static class members with inline intializers
|
||||
to be constants. For examples of what is and isn't considered
|
||||
a constant by SWIG see naming.i in the Ruby test suite. */
|
||||
%rename("%(uppercase)s", %ismember, %isvariable,%isimmutable,%isstatic,%hasvalue,%hasconsttype) "";
|
||||
|
||||
/* Enums are mapped to constants and thus should be UPPER_CASE */
|
||||
%rename("%(uppercase)s", %isenumitem) "";
|
||||
|
||||
/* Method names should be lower_case_with_underscores */
|
||||
%rename("%(undercase)s", %isfunction, %ismember, %not %ismemberget, %not %ismemberset) "";
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue