steffenlarsen wrote: > > hopefully avoiding the addition of additional global state sneaking into > > existing global state. > > This is generally very agreeable. Nonetheless it'd be more beneficial to not > just mark such variables as const but to change the code in a way that it > also needs neither global constructors (i.e., non-constexpr constructors) nor > dynamic relocations.
I agree, but given the `OptionCategory` class registers itself on construction I don't see a way we could accomplish that with a `constexpr` constructors. If you can think of a way I'll happily give it a shot. https://github.com/llvm/llvm-project/pull/184352 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
