File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1505,6 +1505,23 @@ class OmpVisitor : public virtual DeclarationVisitor {
15051505 void Post (const parser::OmpEndCriticalDirective &) {
15061506 messageHandler ().set_currStmtSource (std::nullopt );
15071507 }
1508+ bool Pre (const parser::OpenMPDeclarativeConstruct &x) {
1509+ AddOmpSourceRange (x.source );
1510+ return true ;
1511+ }
1512+ void Post (const parser::OpenMPDeclarativeConstruct &) {
1513+ messageHandler ().set_currStmtSource (std::nullopt );
1514+ }
1515+ bool Pre (const parser::OpenMPAtomicConstruct &x) {
1516+ return common::visit (common::visitors{[&](const auto &u) -> bool {
1517+ AddOmpSourceRange (u.source );
1518+ return true ;
1519+ }},
1520+ x.u );
1521+ }
1522+ void Post (const parser::OpenMPAtomicConstruct &) {
1523+ messageHandler ().set_currStmtSource (std::nullopt );
1524+ }
15081525};
15091526
15101527bool OmpVisitor::NeedsScope (const parser::OpenMPBlockConstruct &x) {
You can’t perform that action at this time.
0 commit comments