add nomatch option

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8190 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-02 17:44:31 +00:00
commit 26c4ba0818
4 changed files with 24 additions and 11 deletions

View file

@ -141,8 +141,8 @@ Version 1.3.28 (unreleased).
Use "swig -dump_tree" to see the attributes names you can use to
match an specific case.
- Sometimes you need to process the 'source' name before
comparing, for example
- 'sourcefmt' and 'targetfmt': sometimes you need to
process the 'source' name before comparing, for example
%namewarn("314: empty is a keyword",sourcefmt="%(lower)s") "empty";
@ -152,10 +152,17 @@ Version 1.3.28 (unreleased).
you will get the keyword warning since 'Empty' will be
lower cased, via the sourcefmt="%(lower)s" option,
before comparing to the 'target' "empty".
before been compared to the 'target' "empty".
There is an additional 'targetfmt' option to process the
'target' before comparing.
- complementing 'match': you can use 'notmatch', for example
%namewarn("314: empty is a keyword",sourcefmt="%(lower)s",notmatch="namespace") "empty";
here, the name warning will be applied to all the symbols except namespaces.
12/30/2005: mmatus