[flang-commits] [flang] RFC: WIP: add support for compiler directives which apply to functions (PR #75352)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Wed Dec 13 09:06:37 PST 2023


================
@@ -8389,7 +8389,31 @@ void ResolveNamesVisitor::Post(const parser::CompilerDirective &x) {
       }
     }
   } else {
-    Say(x.source, "Compiler directive was ignored"_warn_en_US);
+    bool handled = false;
+    if (const auto *nvList{
+            std::get_if<std::list<parser::CompilerDirective::NameValue>>(
+                &x.u)}) {
+      for (const parser::CompilerDirective::NameValue &nv : *nvList) {
+        std::string name = std::get<parser::Name>(nv.t).ToString();
----------------
klausler wrote:

Braced initialization please everywhere in semantics

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


More information about the flang-commits mailing list