PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Lib/d/dkw.swg

#
Unknown | 128 lines | 123 code | 5 blank | 0 comment | 0 complexity | 15a6b7ec6d67952e4c529c71d4709c8a MD5 | raw file
  1#ifndef D_DKW_SWG_
  2#define D_DKW_SWG_
  3
  4/* Warnings for D keywords */
  5#define DKEYWORD(x) %keywordwarn("'" `x` "' is a D keyword, renaming to '_" `x` "'",rename="_%s")  `x`
  6
  7// Source: http://www.digitalmars.com/d/{1.0,2.0}/lex.html and
  8DKEYWORD(Error);
  9DKEYWORD(Exception);
 10DKEYWORD(Object);
 11DKEYWORD(__FILE__);
 12DKEYWORD(__LINE__);
 13DKEYWORD(__gshared);
 14DKEYWORD(__thread);
 15DKEYWORD(__traits);
 16DKEYWORD(abstract);
 17DKEYWORD(alias);
 18DKEYWORD(align);
 19DKEYWORD(asm);
 20DKEYWORD(assert);
 21DKEYWORD(auto);
 22DKEYWORD(body);
 23DKEYWORD(bool);
 24DKEYWORD(break);
 25DKEYWORD(byte);
 26DKEYWORD(case);
 27DKEYWORD(cast);
 28DKEYWORD(catch);
 29DKEYWORD(cdouble);
 30DKEYWORD(cent);
 31DKEYWORD(cfloat);
 32DKEYWORD(char);
 33DKEYWORD(class);
 34DKEYWORD(const);
 35DKEYWORD(continue);
 36DKEYWORD(creal);
 37DKEYWORD(dchar);
 38DKEYWORD(debug);
 39DKEYWORD(default);
 40DKEYWORD(delegate);
 41DKEYWORD(delete);
 42DKEYWORD(deprecated);
 43DKEYWORD(do);
 44DKEYWORD(double);
 45DKEYWORD(dstring);
 46DKEYWORD(else);
 47DKEYWORD(enum);
 48DKEYWORD(export);
 49DKEYWORD(extern);
 50DKEYWORD(false);
 51DKEYWORD(final);
 52DKEYWORD(finally);
 53DKEYWORD(float);
 54DKEYWORD(for);
 55DKEYWORD(foreach);
 56DKEYWORD(foreach_reverse);
 57DKEYWORD(function);
 58DKEYWORD(goto);
 59DKEYWORD(idouble);
 60DKEYWORD(if);
 61DKEYWORD(ifloat);
 62DKEYWORD(immutable);
 63DKEYWORD(import);
 64DKEYWORD(in);
 65DKEYWORD(inout);
 66DKEYWORD(int);
 67DKEYWORD(interface);
 68DKEYWORD(invariant);
 69DKEYWORD(ireal);
 70DKEYWORD(is);
 71DKEYWORD(lazy);
 72DKEYWORD(long);
 73DKEYWORD(macro);
 74DKEYWORD(mixin);
 75DKEYWORD(module);
 76DKEYWORD(new);
 77DKEYWORD(nothrow);
 78DKEYWORD(null);
 79DKEYWORD(out);
 80DKEYWORD(override);
 81DKEYWORD(package);
 82DKEYWORD(pragma);
 83DKEYWORD(private);
 84DKEYWORD(protected);
 85DKEYWORD(public);
 86DKEYWORD(pure);
 87DKEYWORD(real);
 88DKEYWORD(ref);
 89DKEYWORD(return);
 90DKEYWORD(scope);
 91DKEYWORD(shared);
 92DKEYWORD(short);
 93DKEYWORD(static);
 94DKEYWORD(string);
 95DKEYWORD(struct);
 96DKEYWORD(super);
 97DKEYWORD(switch);
 98DKEYWORD(synchronized);
 99DKEYWORD(template);
100DKEYWORD(this);
101DKEYWORD(throw);
102DKEYWORD(true);
103DKEYWORD(try);
104DKEYWORD(typedef);
105DKEYWORD(typeid);
106DKEYWORD(typeof);
107DKEYWORD(ubyte);
108DKEYWORD(ucent);
109DKEYWORD(uint);
110DKEYWORD(ulong);
111DKEYWORD(union);
112DKEYWORD(unittest);
113DKEYWORD(ushort);
114DKEYWORD(version);
115DKEYWORD(void);
116DKEYWORD(volatile);
117DKEYWORD(wchar);
118DKEYWORD(while);
119DKEYWORD(with);
120DKEYWORD(wstring);
121
122// Not really a keyword, but dispose() methods are generated in proxy classes
123// and it's a special method name for D1/Tango.
124DKEYWORD(dispose);
125
126#undef DKEYWORD
127
128#endif //D_DKW_SWG_