[flang-commits] [flang] [Flang][OpenMP] Initial defaultmap(none) implementation (PR #166715)
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Mon Nov 10 07:42:22 PST 2025
================
@@ -3000,6 +3066,36 @@ void OmpAttributeVisitor::Post(const parser::Name &name) {
}
}
+ // TODO: handle case where default and defaultmap are present on the same
+ // construct and conflict, defaultmap should supersede default if they
+ // conflict.
+ if (!GetContext().defaultMap.empty()) {
+ // Checked before implicit data sharing attributes as this rule ignores
+ // them and expects explicit predetermined/specified attributes to be in
+ // place for the types specified.
+ if (Symbol * found{currScope().FindSymbol(name.source)}) {
----------------
kparzysz wrote:
Is your clang-format inserting a space after the `*`? Could you remove it, it just looks wrong. Clang-format does that some time when it thinks the first symbol is a variable, not a type...
https://github.com/llvm/llvm-project/pull/166715
More information about the flang-commits
mailing list