mirror of
https://github.com/Ed94/gencpp.git
synced 2024-12-22 07:44:45 -08:00
fix clang format for enum_underlying
This commit is contained in:
parent
44d0a9cf9d
commit
caec5d8dfc
@ -346,7 +346,7 @@ void enum_to_string_def(CodeEnum self, String* result )
|
||||
, body_to_string(self->Body)
|
||||
);
|
||||
else if ( self->UnderlyingTypeMacro )
|
||||
string_append_fmt( result, "%SC %S\n\n{\n%S\n}"
|
||||
string_append_fmt( result, "%SC %S\n{\n%S\n}"
|
||||
, self->Name
|
||||
, code_to_string(self->UnderlyingTypeMacro)
|
||||
, body_to_string(self->Body)
|
||||
|
@ -891,7 +891,7 @@ R"(#define <interface_name>( code ) _Generic( (code), \
|
||||
StrC cpp_size = to_strc_from_c_str(conversion_buf);
|
||||
union_entry->ValueType->ArrExpr = untyped_str( cpp_size );
|
||||
union_entry->InlineCmt = untyped_str(token_fmt("arr_exp", arr_exp,
|
||||
"// Had to hardcode _PAD_ because (<arr_exp>) was 67 bytes in C (Injected C++ size_of(AST_<Type>::_PAD_) from C++ side)\n"
|
||||
"// Had to hardcode _PAD_ because (<arr_exp>) was 67 bytes in C\n"
|
||||
));
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,23 @@
|
||||
# Format Style Options - Created with Clang Power Tools
|
||||
---
|
||||
AttributeMacros: [enum_underlying]
|
||||
StatementMacros: [GEN_NS_BEGIN, GEN_NS_END, GEN_NS_PARSER_BEGIN, GEN_NS_PARSER_END, GEN_API_C_BEGIN, GEN_API_C_END]
|
||||
|
||||
# AttributeMacros: [
|
||||
# ]
|
||||
StatementMacros: [
|
||||
GEN_NS_BEGIN,
|
||||
GEN_NS_END,
|
||||
GEN_NS_PARSER_BEGIN,
|
||||
GEN_NS_PARSER_END,
|
||||
GEN_API_C_BEGIN,
|
||||
GEN_API_C_END,
|
||||
GEN_IF_MACRO_DEFINED_INCLUDE_THIS_SLOT
|
||||
]
|
||||
Macros:
|
||||
- enum_underlying(type)=type
|
||||
- gen_enum_underlying(type)=type
|
||||
|
||||
TypenameMacros: [Array, Hashtable]
|
||||
SkipMacroDefinitionBody: true
|
||||
SkipMacroDefinitionBody: false
|
||||
|
||||
AccessModifierOffset: -4
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user