mirror of
https://github.com/Ed94/gencpp.git
synced 2024-11-12 20:04:52 -08:00
Ed_
b00c1ae522
There is a redundant pattern for generating all three (as expected). I'll use it to define a general way of doing this sort of behavior.
82 lines
2.9 KiB
C++
82 lines
2.9 KiB
C++
# define AST_BODY_CLASS_UNALLOWED_TYPES \
|
|
case PlatformAttributes: \
|
|
case Class_Body: \
|
|
case Enum_Body: \
|
|
case Extern_Linkage: \
|
|
case Function_Body: \
|
|
case Function_Fwd: \
|
|
case Global_Body: \
|
|
case Namespace: \
|
|
case Namespace_Body: \
|
|
case Operator: \
|
|
case Operator_Fwd: \
|
|
case Parameters: \
|
|
case Specifiers: \
|
|
case Struct_Body: \
|
|
case Typename:
|
|
|
|
# define AST_BODY_FUNCTION_UNALLOWED_TYPES \
|
|
case Access_Public: \
|
|
case Access_Protected: \
|
|
case Access_Private: \
|
|
case PlatformAttributes: \
|
|
case Class_Body: \
|
|
case Enum_Body: \
|
|
case Extern_Linkage: \
|
|
case Friend: \
|
|
case Function_Body: \
|
|
case Function_Fwd: \
|
|
case Global_Body: \
|
|
case Namespace: \
|
|
case Namespace_Body: \
|
|
case Operator: \
|
|
case Operator_Fwd: \
|
|
case Operator_Member: \
|
|
case Operator_Member_Fwd: \
|
|
case Parameters: \
|
|
case Specifiers: \
|
|
case Struct_Body: \
|
|
case Typename:
|
|
|
|
# define AST_BODY_GLOBAL_UNALLOWED_TYPES \
|
|
case Access_Public: \
|
|
case Access_Protected: \
|
|
case Access_Private: \
|
|
case PlatformAttributes: \
|
|
case Class_Body: \
|
|
case Enum_Body: \
|
|
case Execution: \
|
|
case Friend: \
|
|
case Function_Body: \
|
|
case Global_Body: \
|
|
case Namespace_Body: \
|
|
case Operator_Member: \
|
|
case Operator_Member_Fwd: \
|
|
case Parameters: \
|
|
case Specifiers: \
|
|
case Struct_Body: \
|
|
case Typename:
|
|
|
|
# define AST_BODY_EXPORT_UNALLOWED_TYPES AST_BODY_GLOBAL_UNALLOWED_TYPES
|
|
# define AST_BODY_NAMESPACE_UNALLOWED_TYPES \
|
|
case Access_Public: \
|
|
case Access_Protected: \
|
|
case Access_Private: \
|
|
case PlatformAttributes: \
|
|
case Class_Body: \
|
|
case Enum_Body: \
|
|
case Execution: \
|
|
case Friend: \
|
|
case Function_Body: \
|
|
case Namespace_Body: \
|
|
case Operator_Member: \
|
|
case Operator_Member_Fwd: \
|
|
case Parameters: \
|
|
case Specifiers: \
|
|
case Struct_Body: \
|
|
case Typename:
|
|
|
|
# define AST_BODY_EXTERN_LINKAGE_UNALLOWED_TYPES AST_BODY_GLOBAL_UNALLOWED_TYPES
|
|
|
|
# define AST_BODY_STRUCT_UNALLOWED_TYPES AST_BODY_CLASS_UNALLOWED_TYPES
|