Skip to content

Commit 0b94d38

Browse files
committed
[flang][OpenMP] Format check-omp-structure.cpp, NFC
Only a couple of changes, including adding two empty comments to resolve differences between different versions of clang-format.
1 parent 2b135b9 commit 0b94d38

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3017,8 +3017,8 @@ void OmpStructureChecker::Leave(const parser::OmpClauseList &) {
30173017
&objs,
30183018
std::string clause) {
30193019
for (const auto &obj : objs.v) {
3020-
if (const parser::Name *
3021-
objName{parser::Unwrap<parser::Name>(obj)}) {
3020+
if (const parser::Name *objName{
3021+
parser::Unwrap<parser::Name>(obj)}) {
30223022
if (&objName->symbol->GetUltimate() == eventHandleSym) {
30233023
context_.Say(GetContext().clauseSource,
30243024
"A variable: `%s` that appears in a DETACH clause cannot appear on %s clause on the same construct"_err_en_US,
@@ -3637,7 +3637,8 @@ void OmpStructureChecker::CheckReductionModifier(
36373637
if (modifier.v == ReductionModifier::Value::Task) {
36383638
// "Task" is only allowed on worksharing or "parallel" directive.
36393639
static llvm::omp::Directive worksharing[]{
3640-
llvm::omp::Directive::OMPD_do, llvm::omp::Directive::OMPD_scope,
3640+
llvm::omp::Directive::OMPD_do, //
3641+
llvm::omp::Directive::OMPD_scope, //
36413642
llvm::omp::Directive::OMPD_sections,
36423643
// There are more worksharing directives, but they do not apply:
36433644
// "for" is C++ only,

0 commit comments

Comments
 (0)