diff options
author | Seth R Johnson <johnsonsr@ornl.gov> | 2018-02-22 10:10:12 -0500 |
---|---|---|
committer | Seth R Johnson <johnsonsr@ornl.gov> | 2022-02-06 13:51:37 -0500 |
commit | de78b80de9d1c49d8360ccfef874892430c5e462 (patch) | |
tree | 7670719815e46c0a557ce7a4538cfcc4d1ddfbfc /Lib/csharp | |
parent | d7e0aaa57d40de56ea45ca25ee8494fdfec2accb (diff) | |
download | swig-de78b80de9d1c49d8360ccfef874892430c5e462.tar.gz |
Renames performed by `%namewarn` with `rename=` are printed in warning message
This is necessary for regex-like renames (where you can't use the #define trick
as is done in many of the %keywordwarn directives). It's now unnecessary to print
the "renaming to '`x`'" code explicitly by the kw.swg files.
Diffstat (limited to 'Lib/csharp')
-rw-r--r-- | Lib/csharp/csharpkw.swg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/csharp/csharpkw.swg b/Lib/csharp/csharpkw.swg index 824f61874..1904fce94 100644 --- a/Lib/csharp/csharpkw.swg +++ b/Lib/csharp/csharpkw.swg @@ -2,9 +2,9 @@ #define CSHARP_CSHARPKW_SWG_ /* Warnings for C# keywords */ -#define CSHARPKW(x) %keywordwarn("'" `x` "' is a C# keyword, renaming to '" `x` "_'",rename="%s_") `x` +#define CSHARPKW(x) %keywordwarn("'" `x` "' is a C# keyword",rename="%s_") `x` -#define CSHARPCLASSKW(x) %keywordwarn("'" `x` "' is a special method name used in the C# wrapper classes, class renamed to '" `x` "_'",%$isclass,rename="%s_") `x` +#define CSHARPCLASSKW(x) %keywordwarn("'" `x` "' is a special method name used in the C# wrapper classes",%$isclass,rename="%s_") `x` /* from |