[flang-commits] [PATCH] D137859: [flang] Restore ENUM_CLASS() to be compilation-time code
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Sat Nov 12 11:07:58 PST 2022
klausler added a comment.
In D137859#3922948 <https://reviews.llvm.org/D137859#3922948>, @tschuett wrote:
> What happens if I have 2 `ENUM_CLASS`? You did not namespace `Enum2String`. There are no tests.
This is not a new feature, just a rework of a recent update to it. It should work as it always has.
Multiple instances of ENUM_CLASS in the same scope are distinguished by the name of the ENUM_CLASS.
EnumToString will be defined in the namespace and/or class in which the reference to the ENUM_CLASS macro appears.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137859/new/
https://reviews.llvm.org/D137859
More information about the flang-commits
mailing list