[flang-commits] [flang] [flang][driver] add ability to look up feature flags without setting them (PR #144559)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Tue Jun 17 09:35:28 PDT 2025


================
@@ -81,6 +81,8 @@ ENUM_CLASS(UsageWarning, Portability, PointerToUndefinable,
 
 using LanguageFeatures = EnumSet<LanguageFeature, LanguageFeature_enumSize>;
 using UsageWarnings = EnumSet<UsageWarning, UsageWarning_enumSize>;
+using Warning = std::variant<LanguageFeature, UsageWarning>;
----------------
klausler wrote:

I don't understand the last part of that.  But find a nice self-descriptive name, please.  `WarningControlFlags` or something else pertinent to its purpose.  And I'm not sure that having this sum type in the API is any better anyway than just having overloads that handle feature flags and overloads that handle usage warnings.

https://github.com/llvm/llvm-project/pull/144559


More information about the flang-commits mailing list