[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
Fri Mar 27 08:21:13 PDT 2026
================
@@ -148,6 +148,19 @@ class LanguageFeatureControl {
void AddAlternativeCliSpelling(UsageWarning w, std::string input) {
cliOptions_.insert({input, {w}});
}
+ void AddDeprecatedCliSpelling(
+ LanguageFeature f, std::string deprecated, std::string canonical) {
----------------
tarunprabhu wrote:
A common pattern in LLVM is to pass `StringRef` instead of `const std::string&`. It would give us some of the `StringRef` methods that are not yet available in `std::string`.
https://github.com/llvm/llvm-project/pull/188434
More information about the flang-commits
mailing list