Skip to content

Commit ef30f3a

Browse files
Add specific name for the DesignatorChecker class
1 parent 84306d3 commit ef30f3a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

flang/lib/Semantics/check-omp-structure.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,12 @@ class AssociatedLoopChecker {
213213
std::map<std::string, std::int64_t> constructNamesAndLevels_;
214214
};
215215

216-
// `OmpDesignatorChecker` is used to check if the designator
217-
// can appear within the OpenMP construct
218-
class OmpDesignatorChecker {
216+
// `OmpUnitedTaskDesignatorChecker` is used to check if the designator
217+
// can appear within the TASK construct
218+
class OmpUnitedTaskDesignatorChecker {
219219
public:
220-
OmpDesignatorChecker(SemanticsContext &context) : context_{context} {}
220+
OmpUnitedTaskDesignatorChecker(SemanticsContext &context)
221+
: context_{context} {}
221222

222223
template <typename T> bool Pre(const T &) { return true; }
223224
template <typename T> void Post(const T &) {}
@@ -1199,8 +1200,8 @@ void OmpStructureChecker::Enter(const parser::OpenMPBlockConstruct &x) {
11991200
const auto &clauses{std::get<parser::OmpClauseList>(beginBlockDir.t)};
12001201
for (const auto &clause : clauses.v) {
12011202
if (std::get_if<parser::OmpClause::Untied>(&clause.u)) {
1202-
OmpDesignatorChecker ompDesignatorChecker{context_};
1203-
parser::Walk(block, ompDesignatorChecker);
1203+
OmpUnitedTaskDesignatorChecker check{context_};
1204+
parser::Walk(block, check);
12041205
}
12051206
}
12061207
break;

0 commit comments

Comments
 (0)