[flang-commits] [flang] [Flang] Fix -Wopen-mp-* and -Wopen-acc-* flag spellings (PR #188434)

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Mon Apr 13 07:57:08 PDT 2026


================
@@ -178,6 +229,20 @@ std::optional<LanguageControlFlag> LanguageFeatureControl::FindWarning(
   return std::nullopt;
 }
 
+std::optional<std::string_view> LanguageFeatureControl::CheckDeprecatedSpelling(
+    std::string_view input) const {
+  // Strip "no-" prefix for lookup, same as FindWarning does.
+  // TODO: Consider using std::string_view when moving to C++
----------------
tarunprabhu wrote:

It looks like `input` is already a `std::string_view`. Perhaps this comment should say that the llvm::StringRef below can be removed when we move to C++20?

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


More information about the flang-commits mailing list