[flang-commits] [clang] [flang] [Flang][OpenMP] Add -fopenmp-default-none command line flag (PR #120287)

Michael Klemm via flang-commits flang-commits at lists.llvm.org
Wed Dec 18 04:56:12 PST 2024


================
@@ -2268,6 +2268,11 @@ void OmpAttributeVisitor::CreateImplicitSymbols(
 void OmpAttributeVisitor::Post(const parser::Name &name) {
   auto *symbol{name.symbol};
 
+  // if -fopenmp-default-none was given on the command line, act as if
+  // DEFAULT(NONE) was present at the directive.
+  bool HaveOpenMPDefaultNone = context_.languageFeatures().IsEnabled(
----------------
mjklemm wrote:

Done!

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


More information about the flang-commits mailing list