mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
bifcl: Add NOLINT for clang-tidy performance-enum-size to generated headers
This commit is contained in:
parent
c63a220579
commit
d8d8772342
1 changed files with 4 additions and 3 deletions
|
@ -449,6 +449,7 @@ enum_def_1: TOK_ENUM opt_ws TOK_ID opt_ws TOK_LPB opt_ws
|
||||||
// this is the namespace were the enumerators are defined, not where
|
// this is the namespace were the enumerators are defined, not where
|
||||||
// the type is defined.
|
// the type is defined.
|
||||||
// We don't support fully qualified names as enumerators. Use a module name
|
// We don't support fully qualified names as enumerators. Use a module name
|
||||||
|
fprintf(fp_netvar_h, "// NOLINTNEXTLINE(performance-enum-size)\n");
|
||||||
if ( decl.module_name != GLOBAL_MODULE_NAME )
|
if ( decl.module_name != GLOBAL_MODULE_NAME )
|
||||||
fprintf(fp_netvar_h, "namespace BifEnum::%s { ", decl.module_name.c_str());
|
fprintf(fp_netvar_h, "namespace BifEnum::%s { ", decl.module_name.c_str());
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue