llvm/flang/lib/semantics
Tim Keith 9f755666fb [flang] Add ENUM_CLASS to define enum class with ToString function.
This replaces DEFINE_NESTED_ENUM_CLASS in parse-tree.h but works
similarly. "ENUM_CLASS(Foo, A, B, C)" defined enum class Foo with
enumerators A, B, C. It also defines an overloading of EnumToString
that converts enumerators to their string representation.

Change unparse.cc to adapt to this change.

Make use of ENUM_CLASS in attr.h and attr.cc.

Original-commit: flang-compiler/f18@c45b8f172a
Reviewed-on: https://github.com/flang-compiler/f18/pull/31
2018-03-23 14:41:48 -07:00
..
attr.cc [flang] Add ENUM_CLASS to define enum class with ToString function. 2018-03-23 14:41:48 -07:00
attr.h [flang] Add ENUM_CLASS to define enum class with ToString function. 2018-03-23 14:41:48 -07:00
CMakeLists.txt [flang] Partial implementation of Symbols and Scopes. 2018-03-22 17:25:34 -07:00
make-types.cc [flang] Rebase and merge with current master branch. 2018-03-23 14:02:11 -07:00
make-types.h [flang] Add MakeTypes to build types using visitor. 2018-03-01 15:24:35 -08:00
resolve-names.cc [flang] Rebase and merge with current master branch. 2018-03-23 14:02:11 -07:00
scope.cc [flang] Address review comments. 2018-03-23 12:24:29 -07:00
scope.h [flang] Rebase and merge with current master branch. 2018-03-23 14:02:11 -07:00
symbol.cc [flang] Address review comments. 2018-03-23 12:24:29 -07:00
symbol.h [flang] Address review comments. 2018-03-23 12:24:29 -07:00
type.cc [flang] Add MakeTypes to build types using visitor. 2018-03-01 15:24:35 -08:00
type.h [flang] Partial implementation of Symbols and Scopes. 2018-03-22 17:25:34 -07:00