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

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Tue Dec 17 11:50:46 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(
----------------
tarunprabhu wrote:

This should be `haveOpenMPDefaultNone` (lowercase H at the start) to be consistent with the other local variables.

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


More information about the flang-commits mailing list