Skip to content

Commit

Permalink
[Flang][OpenMP] Remove space before :: in member function definition,… (
Browse files Browse the repository at this point in the history
#78205)

… NFC

The names were
```
bool DataSharingProcessor ::needBarrier()
void DataSharingProcessor ::insertBarrier()
```

It seems like clang-format treats those as references to the global
namespace instead of separators in a qualified name.
  • Loading branch information
kparzysz committed Jan 16, 2024
1 parent 3ac9fe6 commit 12c7d4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flang/lib/Lower/OpenMP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ void DataSharingProcessor::collectSymbolsForPrivatization() {
TODO(converter.getCurrentLocation(), "Collapse clause with lastprivate");
}

bool DataSharingProcessor ::needBarrier() {
bool DataSharingProcessor::needBarrier() {
for (const Fortran::semantics::Symbol *sym : privatizedSymbols) {
if (sym->test(Fortran::semantics::Symbol::Flag::OmpFirstPrivate) &&
sym->test(Fortran::semantics::Symbol::Flag::OmpLastPrivate))
Expand All @@ -299,7 +299,7 @@ bool DataSharingProcessor ::needBarrier() {
return false;
}

void DataSharingProcessor ::insertBarrier() {
void DataSharingProcessor::insertBarrier() {
// Emit implicit barrier to synchronize threads and avoid data races on
// initialization of firstprivate variables and post-update of lastprivate
// variables.
Expand Down

0 comments on commit 12c7d4c

Please sign in to comment.