1 /* ----------------------------------------------------------------------------- 2 * This file is part of SWIG, which is licensed as a whole under version 3 3 * (or any later version) of the GNU General Public License. Some additional 4 * terms also apply to certain portions of SWIG. The full details of the SWIG 5 * license and copyrights can be found in the LICENSE and COPYRIGHT files 6 * included with the SWIG source code as distributed by the SWIG developers 7 * and at http://www.swig.org/legal.html. 8 * 9 * swigwarn.h 10 * 11 * SWIG warning message numbers 12 * This file serves as the main registry of warning message numbers. Some of these 13 * numbers are used internally in the C/C++ source code of SWIG. However, some 14 * of the numbers are used in SWIG configuration files (swig.swg and others). 15 * 16 * The numbers are roughly organized into a few different classes by functionality. 17 * 18 * Even though symbolic constants are used in the SWIG source, this is 19 * not always the case in SWIG interface files. Do not change the 20 * numbers in this file. 21 * 22 * This file is used as the input for generating Lib/swigwarn.swg. 23 * ----------------------------------------------------------------------------- */ 24 25 #ifndef SWIGWARN_H_ 26 #define SWIGWARN_H_ 27 28 #define WARN_NONE 0 29 30 /* -- Deprecated features -- */ 31 32 #define WARN_DEPRECATED_EXTERN 101 33 #define WARN_DEPRECATED_VAL 102 34 #define WARN_DEPRECATED_OUT 103 35 #define WARN_DEPRECATED_DISABLEDOC 104 36 #define WARN_DEPRECATED_ENABLEDOC 105 37 #define WARN_DEPRECATED_DOCONLY 106 38 #define WARN_DEPRECATED_STYLE 107 39 #define WARN_DEPRECATED_LOCALSTYLE 108 40 #define WARN_DEPRECATED_TITLE 109 41 #define WARN_DEPRECATED_SECTION 110 42 #define WARN_DEPRECATED_SUBSECTION 111 43 #define WARN_DEPRECATED_SUBSUBSECTION 112 44 #define WARN_DEPRECATED_ADDMETHODS 113 45 #define WARN_DEPRECATED_READONLY 114 46 #define WARN_DEPRECATED_READWRITE 115 47 #define WARN_DEPRECATED_EXCEPT 116 48 #define WARN_DEPRECATED_NEW 117 49 #define WARN_DEPRECATED_EXCEPT_TM 118 50 #define WARN_DEPRECATED_IGNORE_TM 119 51 #define WARN_DEPRECATED_OPTC 120 52 #define WARN_DEPRECATED_NAME 121 53 #define WARN_DEPRECATED_NOEXTERN 122 54 #define WARN_DEPRECATED_NODEFAULT 123 55 #define WARN_DEPRECATED_TYPEMAP_LANG 124 56 #define WARN_DEPRECATED_INPUT_FILE 125 57 #define WARN_DEPRECATED_NESTED_WORKAROUND 126 58 59 /* -- Preprocessor -- */ 60 61 #define WARN_PP_MISSING_FILE 201 62 #define WARN_PP_EVALUATION 202 63 #define WARN_PP_INCLUDEALL_IMPORTALL 203 64 #define WARN_PP_CPP_WARNING 204 65 #define WARN_PP_CPP_ERROR 205 66 #define WARN_PP_UNEXPECTED_TOKENS 206 67 68 /* -- C/C++ Parser -- */ 69 70 #define WARN_PARSE_CLASS_KEYWORD 301 71 #define WARN_PARSE_REDEFINED 302 72 #define WARN_PARSE_EXTEND_UNDEF 303 73 #define WARN_PARSE_UNSUPPORTED_VALUE 304 74 #define WARN_PARSE_BAD_VALUE 305 75 #define WARN_PARSE_PRIVATE 306 76 #define WARN_PARSE_BAD_DEFAULT 307 77 #define WARN_PARSE_NAMESPACE_ALIAS 308 78 #define WARN_PARSE_PRIVATE_INHERIT 309 79 #define WARN_PARSE_TEMPLATE_REPEAT 310 80 #define WARN_PARSE_TEMPLATE_PARTIAL 311 81 #define WARN_PARSE_UNNAMED_NESTED_CLASS 312 82 #define WARN_PARSE_UNDEFINED_EXTERN 313 83 #define WARN_PARSE_KEYWORD 314 84 #define WARN_PARSE_USING_UNDEF 315 85 #define WARN_PARSE_MODULE_REPEAT 316 86 #define WARN_PARSE_TEMPLATE_SP_UNDEF 317 87 #define WARN_PARSE_TEMPLATE_AMBIG 318 88 #define WARN_PARSE_NO_ACCESS 319 89 #define WARN_PARSE_EXPLICIT_TEMPLATE 320 90 #define WARN_PARSE_BUILTIN_NAME 321 91 #define WARN_PARSE_REDUNDANT 322 92 #define WARN_PARSE_REC_INHERITANCE 323 93 #define WARN_PARSE_NESTED_TEMPLATE 324 94 #define WARN_PARSE_NAMED_NESTED_CLASS 325 95 #define WARN_PARSE_EXTEND_NAME 326 96 97 #define WARN_CPP11_LAMBDA 340 98 #define WARN_CPP11_ALIAS_DECLARATION 341 /* redundant now */ 99 #define WARN_CPP11_ALIAS_TEMPLATE 342 /* redundant now */ 100 #define WARN_CPP11_VARIADIC_TEMPLATE 343 101 102 #define WARN_IGNORE_OPERATOR_NEW 350 /* new */ 103 #define WARN_IGNORE_OPERATOR_DELETE 351 /* delete */ 104 #define WARN_IGNORE_OPERATOR_PLUS 352 /* + */ 105 #define WARN_IGNORE_OPERATOR_MINUS 353 /* - */ 106 #define WARN_IGNORE_OPERATOR_MUL 354 /* * */ 107 #define WARN_IGNORE_OPERATOR_DIV 355 /* / */ 108 #define WARN_IGNORE_OPERATOR_MOD 356 /* % */ 109 #define WARN_IGNORE_OPERATOR_XOR 357 /* ^ */ 110 #define WARN_IGNORE_OPERATOR_AND 358 /* & */ 111 #define WARN_IGNORE_OPERATOR_OR 359 /* | */ 112 #define WARN_IGNORE_OPERATOR_NOT 360 /* ~ */ 113 #define WARN_IGNORE_OPERATOR_LNOT 361 /* ! */ 114 #define WARN_IGNORE_OPERATOR_EQ 362 /* = */ 115 #define WARN_IGNORE_OPERATOR_LT 363 /* < */ 116 #define WARN_IGNORE_OPERATOR_GT 364 /* > */ 117 #define WARN_IGNORE_OPERATOR_PLUSEQ 365 /* += */ 118 #define WARN_IGNORE_OPERATOR_MINUSEQ 366 /* -= */ 119 #define WARN_IGNORE_OPERATOR_MULEQ 367 /* *= */ 120 #define WARN_IGNORE_OPERATOR_DIVEQ 368 /* /= */ 121 #define WARN_IGNORE_OPERATOR_MODEQ 369 /* %= */ 122 #define WARN_IGNORE_OPERATOR_XOREQ 370 /* ^= */ 123 #define WARN_IGNORE_OPERATOR_ANDEQ 371 /* &= */ 124 #define WARN_IGNORE_OPERATOR_OREQ 372 /* |= */ 125 #define WARN_IGNORE_OPERATOR_LSHIFT 373 /* << */ 126 #define WARN_IGNORE_OPERATOR_RSHIFT 374 /* >> */ 127 #define WARN_IGNORE_OPERATOR_LSHIFTEQ 375 /* <<= */ 128 #define WARN_IGNORE_OPERATOR_RSHIFTEQ 376 /* >>= */ 129 #define WARN_IGNORE_OPERATOR_EQUALTO 377 /* == */ 130 #define WARN_IGNORE_OPERATOR_NOTEQUAL 378 /* != */ 131 #define WARN_IGNORE_OPERATOR_LTEQUAL 379 /* <= */ 132 #define WARN_IGNORE_OPERATOR_GTEQUAL 380 /* >= */ 133 #define WARN_IGNORE_OPERATOR_LAND 381 /* && */ 134 #define WARN_IGNORE_OPERATOR_LOR 382 /* || */ 135 #define WARN_IGNORE_OPERATOR_PLUSPLUS 383 /* ++ */ 136 #define WARN_IGNORE_OPERATOR_MINUSMINUS 384 /* -- */ 137 #define WARN_IGNORE_OPERATOR_COMMA 385 /* , */ 138 #define WARN_IGNORE_OPERATOR_ARROWSTAR 386 /* ->* */ 139 #define WARN_IGNORE_OPERATOR_ARROW 387 /* -> */ 140 #define WARN_IGNORE_OPERATOR_CALL 388 /* () */ 141 #define WARN_IGNORE_OPERATOR_INDEX 389 /* [] */ 142 #define WARN_IGNORE_OPERATOR_UPLUS 390 /* + */ 143 #define WARN_IGNORE_OPERATOR_UMINUS 391 /* - */ 144 #define WARN_IGNORE_OPERATOR_UMUL 392 /* * */ 145 #define WARN_IGNORE_OPERATOR_UAND 393 /* & */ 146 #define WARN_IGNORE_OPERATOR_NEWARR 394 /* new [] */ 147 #define WARN_IGNORE_OPERATOR_DELARR 395 /* delete [] */ 148 #define WARN_IGNORE_OPERATOR_REF 396 /* operator *() */ 149 150 /* 394-399 are reserved */ 151 152 /* -- Type system and typemaps -- */ 153 154 #define WARN_TYPE_UNDEFINED_CLASS 401 155 #define WARN_TYPE_INCOMPLETE 402 156 #define WARN_TYPE_ABSTRACT 403 157 #define WARN_TYPE_REDEFINED 404 158 #define WARN_TYPE_RVALUE_REF_QUALIFIER_IGNORED 405 159 160 #define WARN_TYPEMAP_SOURCETARGET 450 161 #define WARN_TYPEMAP_CHARLEAK 451 162 #define WARN_TYPEMAP_SWIGTYPE 452 163 #define WARN_TYPEMAP_APPLY_UNDEF 453 164 #define WARN_TYPEMAP_SWIGTYPELEAK 454 165 166 #define WARN_TYPEMAP_IN_UNDEF 460 167 #define WARN_TYPEMAP_OUT_UNDEF 461 168 #define WARN_TYPEMAP_VARIN_UNDEF 462 169 #define WARN_TYPEMAP_VAROUT_UNDEF 463 170 #define WARN_TYPEMAP_CONST_UNDEF 464 171 #define WARN_TYPEMAP_UNDEF 465 172 #define WARN_TYPEMAP_VAR_UNDEF 466 173 #define WARN_TYPEMAP_TYPECHECK 467 174 #define WARN_TYPEMAP_THROW 468 175 #define WARN_TYPEMAP_DIRECTORIN_UNDEF 469 176 #define WARN_TYPEMAP_THREAD_UNSAFE 470 /* mostly used in directorout typemaps */ 177 #define WARN_TYPEMAP_DIRECTOROUT_UNDEF 471 178 #define WARN_TYPEMAP_TYPECHECK_UNDEF 472 179 #define WARN_TYPEMAP_DIRECTOROUT_PTR 473 180 #define WARN_TYPEMAP_OUT_OPTIMAL_IGNORED 474 181 #define WARN_TYPEMAP_OUT_OPTIMAL_MULTIPLE 475 182 #define WARN_TYPEMAP_INITIALIZER_LIST 476 183 #define WARN_TYPEMAP_DIRECTORTHROWS_UNDEF 477 184 185 /* -- Fragments -- */ 186 #define WARN_FRAGMENT_NOT_FOUND 490 187 188 /* -- General code generation -- */ 189 190 #define WARN_LANG_OVERLOAD_DECL 501 191 #define WARN_LANG_OVERLOAD_CONSTRUCT 502 192 #define WARN_LANG_IDENTIFIER 503 193 #define WARN_LANG_RETURN_TYPE 504 194 #define WARN_LANG_VARARGS 505 195 #define WARN_LANG_VARARGS_KEYWORD 506 196 #define WARN_LANG_NATIVE_UNIMPL 507 197 #define WARN_LANG_DEREF_SHADOW 508 198 #define WARN_LANG_OVERLOAD_SHADOW 509 199 #define WARN_LANG_FRIEND_IGNORE 510 200 #define WARN_LANG_OVERLOAD_KEYWORD 511 201 #define WARN_LANG_OVERLOAD_CONST 512 202 #define WARN_LANG_CLASS_UNNAMED 513 203 #define WARN_LANG_DIRECTOR_VDESTRUCT 514 204 #define WARN_LANG_DISCARD_CONST 515 205 #define WARN_LANG_OVERLOAD_IGNORED 516 206 #define WARN_LANG_DIRECTOR_ABSTRACT 517 207 #define WARN_LANG_PORTABILITY_FILENAME 518 208 #define WARN_LANG_TEMPLATE_METHOD_IGNORE 519 209 #define WARN_LANG_SMARTPTR_MISSING 520 210 #define WARN_LANG_ILLEGAL_DESTRUCTOR 521 211 #define WARN_LANG_EXTEND_CONSTRUCTOR 522 212 #define WARN_LANG_EXTEND_DESTRUCTOR 523 213 #define WARN_LANG_EXPERIMENTAL 524 214 #define WARN_LANG_DIRECTOR_FINAL 525 215 216 /* -- Doxygen comments -- */ 217 218 #define WARN_DOXYGEN_UNKNOWN_COMMAND 560 219 #define WARN_DOXYGEN_UNEXPECTED_END_OF_COMMENT 561 220 #define WARN_DOXYGEN_COMMAND_EXPECTED 562 221 #define WARN_DOXYGEN_HTML_ERROR 563 222 #define WARN_DOXYGEN_COMMAND_ERROR 564 223 #define WARN_DOXYGEN_UNKNOWN_CHARACTER 565 224 #define WARN_DOXYGEN_UNEXPECTED_ITERATOR_VALUE 566 225 226 /* -- Reserved (600-799) -- */ 227 228 /* -- Language module specific warnings (700 - 899) -- */ 229 230 /* Feel free to claim any number in this space that's not currently being used. Just make sure you 231 add an entry here */ 232 233 #define WARN_D_TYPEMAP_CTYPE_UNDEF 700 234 #define WARN_D_TYPEMAP_IMTYPE_UNDEF 701 235 #define WARN_D_TYPEMAP_DTYPE_UNDEF 702 236 #define WARN_D_MULTIPLE_INHERITANCE 703 237 #define WARN_D_TYPEMAP_CLASSMOD_UNDEF 704 238 #define WARN_D_TYPEMAP_DBODY_UNDEF 705 239 #define WARN_D_TYPEMAP_DOUT_UNDEF 706 240 #define WARN_D_TYPEMAP_DIN_UNDEF 707 241 #define WARN_D_TYPEMAP_DDIRECTORIN_UNDEF 708 242 #define WARN_D_TYPEMAP_DCONSTRUCTOR_UNDEF 709 243 #define WARN_D_EXCODE_MISSING 710 244 #define WARN_D_CANTHROW_MISSING 711 245 #define WARN_D_NO_DIRECTORCONNECT_ATTR 712 246 #define WARN_D_NAME_COLLISION 713 247 248 /* please leave 700-719 free for D */ 249 250 #define WARN_SCILAB_TRUNCATED_NAME 720 251 252 /* please leave 720-739 free for Scilab */ 253 254 #define WARN_PYTHON_INDENT_MISMATCH 740 255 256 /* please leave 740-759 free for Python */ 257 258 #define WARN_RUBY_WRONG_NAME 801 259 #define WARN_RUBY_MULTIPLE_INHERITANCE 802 260 261 /* please leave 800-809 free for Ruby */ 262 263 #define WARN_JAVA_TYPEMAP_JNI_UNDEF 810 264 #define WARN_JAVA_TYPEMAP_JTYPE_UNDEF 811 265 #define WARN_JAVA_TYPEMAP_JSTYPE_UNDEF 812 266 #define WARN_JAVA_MULTIPLE_INHERITANCE 813 267 #define WARN_JAVA_TYPEMAP_GETCPTR_UNDEF 814 268 #define WARN_JAVA_TYPEMAP_CLASSMOD_UNDEF 815 269 #define WARN_JAVA_TYPEMAP_JAVABODY_UNDEF 816 270 #define WARN_JAVA_TYPEMAP_JAVAOUT_UNDEF 817 271 #define WARN_JAVA_TYPEMAP_JAVAIN_UNDEF 818 272 #define WARN_JAVA_TYPEMAP_JAVADIRECTORIN_UNDEF 819 273 #define WARN_JAVA_TYPEMAP_JAVADIRECTOROUT_UNDEF 820 274 #define WARN_JAVA_TYPEMAP_INTERFACECODE_UNDEF 821 275 #define WARN_JAVA_COVARIANT_RET 822 276 #define WARN_JAVA_TYPEMAP_JAVACONSTRUCT_UNDEF 823 277 #define WARN_JAVA_TYPEMAP_DIRECTORIN_NODESC 824 278 #define WARN_JAVA_NO_DIRECTORCONNECT_ATTR 825 279 #define WARN_JAVA_NSPACE_WITHOUT_PACKAGE 826 280 281 /* please leave 810-829 free for Java */ 282 283 #define WARN_CSHARP_TYPEMAP_CTYPE_UNDEF 830 284 #define WARN_CSHARP_TYPEMAP_CSTYPE_UNDEF 831 285 #define WARN_CSHARP_TYPEMAP_CSWTYPE_UNDEF 832 286 #define WARN_CSHARP_MULTIPLE_INHERITANCE 833 287 #define WARN_CSHARP_TYPEMAP_GETCPTR_UNDEF 834 288 #define WARN_CSHARP_TYPEMAP_CLASSMOD_UNDEF 835 289 #define WARN_CSHARP_TYPEMAP_CSBODY_UNDEF 836 290 #define WARN_CSHARP_TYPEMAP_CSOUT_UNDEF 837 291 #define WARN_CSHARP_TYPEMAP_CSIN_UNDEF 838 292 #define WARN_CSHARP_TYPEMAP_CSDIRECTORIN_UNDEF 839 293 #define WARN_CSHARP_TYPEMAP_CSDIRECTOROUT_UNDEF 840 294 #define WARN_CSHARP_TYPEMAP_INTERFACECODE_UNDEF 841 295 #define WARN_CSHARP_COVARIANT_RET 842 296 #define WARN_CSHARP_TYPEMAP_CSCONSTRUCT_UNDEF 843 297 #define WARN_CSHARP_EXCODE 844 298 #define WARN_CSHARP_CANTHROW 845 299 #define WARN_CSHARP_NO_DIRECTORCONNECT_ATTR 846 300 301 /* please leave 830-849 free for C# */ 302 303 #define WARN_MODULA3_TYPEMAP_TYPE_UNDEF 850 304 #define WARN_MODULA3_TYPEMAP_GETCPTR_UNDEF 851 305 #define WARN_MODULA3_TYPEMAP_CLASSMOD_UNDEF 852 306 #define WARN_MODULA3_TYPEMAP_PTRCONSTMOD_UNDEF 853 307 #define WARN_MODULA3_TYPEMAP_MULTIPLE_RETURN 854 308 #define WARN_MODULA3_MULTIPLE_INHERITANCE 855 309 #define WARN_MODULA3_TYPECONSTRUCTOR_UNKNOWN 856 310 #define WARN_MODULA3_UNKNOWN_PRAGMA 857 311 #define WARN_MODULA3_BAD_ENUMERATION 858 312 #define WARN_MODULA3_DOUBLE_ID 859 313 #define WARN_MODULA3_BAD_IMPORT 860 314 315 /* please leave 850-869 free for Modula 3 */ 316 317 #define WARN_PHP_MULTIPLE_INHERITANCE 870 318 #define WARN_PHP_UNKNOWN_PRAGMA 871 319 #define WARN_PHP_PUBLIC_BASE 872 320 321 /* please leave 870-889 free for PHP */ 322 323 #define WARN_GO_NAME_CONFLICT 890 324 325 /* please leave 890-899 free for Go */ 326 327 /* -- User defined warnings (900 - 999) -- */ 328 329 #endif 330