@@ -405,7 +405,7 @@ void OmpStructureChecker::HasInvalidDistributeNesting(
405405 } else {
406406 // `distribute` region has to be strictly nested inside `teams`
407407 if (!OmpDirectiveSet{llvm::omp::OMPD_teams, llvm::omp::OMPD_target_teams}
408- .test (GetContextParent ().directive )) {
408+ .test (GetContextParent ().directive )) {
409409 violation = true ;
410410 }
411411 }
@@ -517,8 +517,7 @@ void OmpStructureChecker::CheckHintClause(
517517 const Fortran::parser::OmpClauseList>) {
518518 ompClause = &clause;
519519 }
520- if (const Fortran::parser::OmpClause::Hint *
521- hintClause{
520+ if (const Fortran::parser::OmpClause::Hint *hintClause{
522521 std::get_if<Fortran::parser::OmpClause::Hint>(&ompClause->u )}) {
523522 std::optional<std::int64_t > hintValue = GetIntValue (hintClause->v );
524523 if (hintValue && *hintValue >= 0 ) {
@@ -2643,7 +2642,7 @@ void OmpStructureChecker::Enter(const parser::OmpClause &x) {
26432642 break ;
26442643 }
26452644
2646- if (const parser::OmpObjectList * objList{GetOmpObjectList (x)}) {
2645+ if (const parser::OmpObjectList *objList{GetOmpObjectList (x)}) {
26472646 SymbolSourceMap symbols;
26482647 GetSymbolsInObjectList (*objList, symbols);
26492648 for (const auto &[sym, source] : symbols) {
@@ -3228,7 +3227,7 @@ void OmpStructureChecker::Enter(const parser::OmpClause::Firstprivate &x) {
32283227void OmpStructureChecker::CheckIsLoopIvPartOfClause (
32293228 llvmOmpClause clause, const parser::OmpObjectList &ompObjectList) {
32303229 for (const auto &ompObject : ompObjectList.v ) {
3231- if (const parser::Name * name{parser::Unwrap<parser::Name>(ompObject)}) {
3230+ if (const parser::Name *name{parser::Unwrap<parser::Name>(ompObject)}) {
32323231 if (name->symbol == GetContext ().loopIV ) {
32333232 context_.Say (name->source ,
32343233 " DO iteration variable %s is not allowed in %s clause." _err_en_US,
@@ -4189,7 +4188,7 @@ void OmpStructureChecker::CheckPrivateSymbolsInOuterCxt(
41894188 auto enclosingClauseSet{dirIter->second .second };
41904189 if (auto *enclosingContext{GetEnclosingContextWithDir (enclosingDir)}) {
41914190 for (auto it{enclosingContext->clauseInfo .begin ()};
4192- it != enclosingContext->clauseInfo .end (); ++it) {
4191+ it != enclosingContext->clauseInfo .end (); ++it) {
41934192 if (enclosingClauseSet.test (it->first )) {
41944193 if (const auto *ompObjectList{GetOmpObjectList (*it->second )}) {
41954194 GetSymbolsInObjectList (*ompObjectList, enclosingSymbols);
0 commit comments