Skip to content

Commit a9788e3

Browse files
committed
Thread Safety Analysis: Test: Minor style fix
Factored out from #137133 NFC.
1 parent 7aa8ece commit a9788e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/test/SemaCXX/warn-thread-safety-analysis.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6708,15 +6708,15 @@ int testAdoptShared() {
67086708

67096709
} // namespace ReturnScopedLockable
67106710

6711-
#endif
6711+
#endif // __cpp_guaranteed_copy_elision
67126712

67136713
namespace PR38640 {
67146714
void f() {
67156715
// Self-referencing assignment previously caused an infinite loop when thread
67166716
// safety analysis was enabled.
67176717
int &i = i; // expected-warning {{reference 'i' is not yet bound to a value when used within its own initialization}}
67186718
}
6719-
}
6719+
} // namespace PR38640
67206720

67216721
namespace Derived_Smart_Pointer {
67226722
template <class T>
@@ -6811,4 +6811,4 @@ class PointerGuard {
68116811
mu1.Unlock();
68126812
}
68136813
};
6814-
}
6814+
} // namespace Derived_Smart_Pointer

0 commit comments

Comments
 (0)