aboutsummaryrefslogtreecommitdiff
path: root/source/20-codegen-compiler/test
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-06-09 21:23:15 -0700
committerrtk0c <[email protected]>2022-06-09 21:23:15 -0700
commitc6b122f517fbde9a400ecb46c4fff44629f7677c (patch)
tree49da93ce34fdaf0fadc7007c46525078aa9bff4d /source/20-codegen-compiler/test
parent8510a85f79f706b93982b4e398b187b5f77081dd (diff)
Changeset: 65 Add enum name prefix manipulation support to codegen
Diffstat (limited to 'source/20-codegen-compiler/test')
-rw-r--r--source/20-codegen-compiler/test/examples/TestEnum.hpp.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/20-codegen-compiler/test/examples/TestEnum.hpp.txt b/source/20-codegen-compiler/test/examples/TestEnum.hpp.txt
index 30c36c0..fea1f6d 100644
--- a/source/20-codegen-compiler/test/examples/TestEnum.hpp.txt
+++ b/source/20-codegen-compiler/test/examples/TestEnum.hpp.txt
@@ -1,44 +1,44 @@
enum MyEnum {
+ BRUSSEL_ENUM(ToString, FromString)
EnumElement1,
EnumElement2,
EnumElement3,
};
-BRUSSEL_ENUM(MyEnum, ToString FromString);
// Let's also test enum class
enum class CountedEnumAll {
+ BRUSSEL_ENUM(ToString, FromString)
CEA_Foo,
CEA_Bar,
CEA_COUNT,
};
-BRUSSEL_ENUM(CountedEnumAll, ToString FromString);
enum CountedEnum {
+ BRUSSEL_ENUM(ToString, FromString, RemovePrefix CE_, AddPrefix CustomPrefix, ExcludeHeuristics)
CE_Foo,
CE_Bar,
CE_FooBar,
CE_COUNT,
};
-BRUSSEL_ENUM(CountedEnum, ToString FromString ExcludeHeuristics);
namespace MyNamespace {
enum class MyNamespacedEnum {
+ BRUSSEL_ENUM(ToString, FromString, ExcludeHeuristics)
MNE_Foo,
MNE_Bar,
};
-BRUSSEL_ENUM(MyNamespacedEnum, ToString FromString ExcludeHeuristics);
namespace details {
enum MyNamespacedEnum {
+ BRUSSEL_ENUM(ToString, FromString, ExcludeHeuristics)
MNE_Foo,
MNE_Bar,
};
- BRUSSEL_ENUM(MyNamespacedEnum, ToString FromString ExcludeHeuristics);
}
}
namespace foo::details {
enum Enum {
+ BRUSSEL_ENUM(ToString, FromString, ExcludeHeuristics)
};
-BRUSSEL_ENUM(Enum, ToString FromString ExcludeHeuristics);
}