We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7aa8ece commit a9788e3Copy full SHA for a9788e3
clang/test/SemaCXX/warn-thread-safety-analysis.cpp
@@ -6708,15 +6708,15 @@ int testAdoptShared() {
6708
6709
} // namespace ReturnScopedLockable
6710
6711
-#endif
+#endif // __cpp_guaranteed_copy_elision
6712
6713
namespace PR38640 {
6714
void f() {
6715
// Self-referencing assignment previously caused an infinite loop when thread
6716
// safety analysis was enabled.
6717
int &i = i; // expected-warning {{reference 'i' is not yet bound to a value when used within its own initialization}}
6718
}
6719
-}
+} // namespace PR38640
6720
6721
namespace Derived_Smart_Pointer {
6722
template <class T>
@@ -6811,4 +6811,4 @@ class PointerGuard {
6811
mu1.Unlock();
6812
6813
};
6814
+} // namespace Derived_Smart_Pointer
0 commit comments