[flang][OpenMP] Remove namespace qualification from GetUpperName, NFC (#190619)

This applies to flang/lib/Semantics/openmp-utils.cpp, since it contains
`using namespace Fortran::parser::omp`.
This commit is contained in:
Krzysztof Parzyszek 2026-04-06 10:49:25 -05:00 committed by GitHub
parent bf2a97a0dd
commit 4994a97135
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -883,8 +883,8 @@ std::pair<WithReason<int64_t>, bool> GetAffectedNestDepthWithReason(
return {{num, std::move(reason)}, true};
}
// PERMUTATION not specified, assume PERMUTATION(2, 1).
std::string name{parser::omp::GetUpperName(
llvm::omp::Clause::OMPC_permutation, version)};
std::string name{
GetUpperName(llvm::omp::Clause::OMPC_permutation, version)};
Reason reason;
reason.Say(
spec.source, MsgClauseAbsentAssume, name, "a permutation (2, 1)");
@ -904,8 +904,7 @@ std::pair<WithReason<int64_t>, bool> GetAffectedNestDepthWithReason(
spec, llvm::omp::Clause::OMPC_depth, version)};
return {{count, std::move(reason)}, true};
}
std::string name{
parser::omp::GetUpperName(llvm::omp::Clause::OMPC_depth, version)};
std::string name{GetUpperName(llvm::omp::Clause::OMPC_depth, version)};
Reason reason;
reason.Say(spec.source, MsgClauseAbsentAssume, name, "a value of 1");
return {{1, std::move(reason)}, true};
@ -939,8 +938,8 @@ WithReason<std::pair<int64_t, int64_t>> GetAffectedLoopRangeWithReason(
if (!first || !count || *first <= 0 || *count <= 0) {
return {};
}
std::string name{parser::omp::GetUpperName(
llvm::omp::Clause::OMPC_looprange, version)};
std::string name{
GetUpperName(llvm::omp::Clause::OMPC_looprange, version)};
Reason reason;
reason.Say(clause->source,
"%s clause was specified with a count of %" PRId64