From 33098764b73ca8e7dcf5c168a12017350b387aaf Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 4 Aug 2012 22:38:44 +0000 Subject: [PATCH] Remove unnecessary keyword warning when parsing 'using' git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13509 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- CHANGES.current | 10 ++++++++-- Source/Swig/naming.c | 7 +++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/CHANGES.current b/CHANGES.current index 011556b57..f10ab79d0 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -5,10 +5,16 @@ See the RELEASENOTES file for a summary of changes in each release. Version 2.0.8 (in progress) =========================== -2012-06-27: wsfulton +2012-08-04: wsfulton + Remove incorrect warning (314) about target language keywords which were triggered + by using declarations and using directives. For example 'string' is a keyword in C#: + namespace std { class string; } + using std::string; + +2012-07-21: wsfulton Fix display of pointers in various places on 64 bit systems - only 32 bits were being shown. -2012-06-27: wsfulton +2012-07-21: wsfulton Fix gdb debugger functions 'swigprint' and 'locswigprint' to display to the gdb output window rather than stdout. This fixes display problems in gdbtui and the ensures the output appears where expected in other gdb based debuggers such as Eclipse CDT. diff --git a/Source/Swig/naming.c b/Source/Swig/naming.c index 1be1405a3..e96dbd14e 100644 --- a/Source/Swig/naming.c +++ b/Source/Swig/naming.c @@ -883,13 +883,16 @@ List *Swig_name_rename_list() { int Swig_need_name_warning(Node *n) { int need = 1; /* - we don't use name warnings for: + We don't use name warnings for: - class forwards, no symbol is generated at the target language. - template declarations, only for real instances using %template(name). - - typedefs, they have no effect at the target language. + - typedefs, have no effect at the target language. + - using declarations and using directives, have no effect at the target language. */ if (checkAttribute(n, "nodeType", "classforward")) { need = 0; + } else if (checkAttribute(n, "nodeType", "using")) { + need = 0; } else if (checkAttribute(n, "storage", "typedef")) { need = 0; } else if (Getattr(n, "hidden")) {