[flang-commits] [flang] [flang][OpenMP] Implement OmpDirectiveName, use in OmpDirectiveSpecif… (PR #130121)
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Thu Mar 6 09:04:04 PST 2025
================
@@ -253,6 +253,21 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &os, const Name &x) {
return os << x.ToString();
}
+OmpDirectiveName::OmpDirectiveName(const Verbatim &name) {
+ std::string_view nameView{name.source.begin(), name.source.size()};
+ std::string nameLower{ToLowerCaseLetters(nameView)};
+ // If the name was actually "unknown" then accept it, otherwise flag
----------------
kparzysz wrote:
Actually, I'm just going to assert on "unknown" as well. There is no need to treat it as a special case.
https://github.com/llvm/llvm-project/pull/130121
More information about the flang-commits
mailing list