@@ -405,7 +405,7 @@ void OmpStructureChecker::HasInvalidDistributeNesting(
405
405
} else {
406
406
// `distribute` region has to be strictly nested inside `teams`
407
407
if (!OmpDirectiveSet{llvm::omp::OMPD_teams, llvm::omp::OMPD_target_teams}
408
- .test (GetContextParent ().directive )) {
408
+ .test (GetContextParent ().directive )) {
409
409
violation = true ;
410
410
}
411
411
}
@@ -517,8 +517,7 @@ void OmpStructureChecker::CheckHintClause(
517
517
const Fortran::parser::OmpClauseList>) {
518
518
ompClause = &clause;
519
519
}
520
- if (const Fortran::parser::OmpClause::Hint *
521
- hintClause{
520
+ if (const Fortran::parser::OmpClause::Hint *hintClause{
522
521
std::get_if<Fortran::parser::OmpClause::Hint>(&ompClause->u )}) {
523
522
std::optional<std::int64_t > hintValue = GetIntValue (hintClause->v );
524
523
if (hintValue && *hintValue >= 0 ) {
@@ -2643,7 +2642,7 @@ void OmpStructureChecker::Enter(const parser::OmpClause &x) {
2643
2642
break ;
2644
2643
}
2645
2644
2646
- if (const parser::OmpObjectList * objList{GetOmpObjectList (x)}) {
2645
+ if (const parser::OmpObjectList *objList{GetOmpObjectList (x)}) {
2647
2646
SymbolSourceMap symbols;
2648
2647
GetSymbolsInObjectList (*objList, symbols);
2649
2648
for (const auto &[sym, source] : symbols) {
@@ -3228,7 +3227,7 @@ void OmpStructureChecker::Enter(const parser::OmpClause::Firstprivate &x) {
3228
3227
void OmpStructureChecker::CheckIsLoopIvPartOfClause (
3229
3228
llvmOmpClause clause, const parser::OmpObjectList &ompObjectList) {
3230
3229
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)}) {
3232
3231
if (name->symbol == GetContext ().loopIV ) {
3233
3232
context_.Say (name->source ,
3234
3233
" DO iteration variable %s is not allowed in %s clause." _err_en_US,
@@ -4189,7 +4188,7 @@ void OmpStructureChecker::CheckPrivateSymbolsInOuterCxt(
4189
4188
auto enclosingClauseSet{dirIter->second .second };
4190
4189
if (auto *enclosingContext{GetEnclosingContextWithDir (enclosingDir)}) {
4191
4190
for (auto it{enclosingContext->clauseInfo .begin ()};
4192
- it != enclosingContext->clauseInfo .end (); ++it) {
4191
+ it != enclosingContext->clauseInfo .end (); ++it) {
4193
4192
if (enclosingClauseSet.test (it->first )) {
4194
4193
if (const auto *ompObjectList{GetOmpObjectList (*it->second )}) {
4195
4194
GetSymbolsInObjectList (*ompObjectList, enclosingSymbols);
0 commit comments