Languages whose plain `enum` is UNSCOPED: its enumerators are names of the * scope that holds the enum, not of the enum (C, C++ and its CUDA dialect, * Objective-C). `XXH_OK` of `typedef enum { XXH_OK, XXH_ERROR } XXH_errorcode;` * is written and looked up as plain XXH_OK, so its QN is ` .XXH_OK`. */
| 5284 | * Objective-C). `XXH_OK` of `typedef enum { XXH_OK, XXH_ERROR } XXH_errorcode;` |
| 5285 | * is written and looked up as plain XXH_OK, so its QN is `<scope>.XXH_OK`. */ |
| 5286 | static bool c_enum_lang(CBMLanguage lang) { |
| 5287 | return lang == CBM_LANG_C || lang == CBM_LANG_CPP || lang == CBM_LANG_CUDA || |
| 5288 | lang == CBM_LANG_OBJC; |
| 5289 | } |
| 5290 | |
| 5291 | /* Is a struct, union or class around an unscoped enum the scope of its |
| 5292 | * enumerators? In C++ (and CUDA; every .h is parsed as C++) it is: the |
no outgoing calls
no test coverage detected