Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion stl/inc/xstring
Original file line number Diff line number Diff line change
Expand Up @@ -2325,7 +2325,8 @@ public:
value_type _Buf[_BUF_SIZE];
pointer _Ptr;
char _Alias[_BUF_SIZE]; // TRANSITION, ABI: _Alias is preserved for binary compatibility (especially /clr)
} _Bx;
};
_Bxty _Bx;

size_type _Mysize = 0; // current length of string
size_type _Myres = 0; // current storage reserved for string
Expand Down
3 changes: 2 additions & 1 deletion stl/src/ppltasks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ namespace Concurrency {
this);
return m_isSupported;
}
} asyncCausalityTracer;
};
AsyncCausalityTracer asyncCausalityTracer;

// GUID used for identifying causality logs from PPLTask
const GUID PPLTaskCausalityPlatformID = {
Expand Down
3 changes: 2 additions & 1 deletion stl/src/taskscheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ namespace Concurrency {
_STD unique_lock<_STD mutex> _Lck(_Task_cv_mutex);
_Task_cv.wait(_Lck, [] { return _Outstanding_tasks == 0; });
}
} _Task_scheduler_main_block_instance;
};
_Task_scheduler_main_block _Task_scheduler_main_block_instance;
#endif // CRTDLL2

void CALLBACK _Task_scheduler_callback(PTP_CALLBACK_INSTANCE _Pci, PVOID _Args, PTP_WORK) noexcept {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ struct use_async_in_a_global_tester {
~use_async_in_a_global_tester() {
(void) async([] { return 1729; }).get();
}
} use_async_in_a_global_instance;
};

use_async_in_a_global_tester use_async_in_a_global_instance;
#endif // _M_CEE

int main() {
Expand Down
3 changes: 2 additions & 1 deletion tests/std/tests/P0019R8_atomic_ref/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ void test_ops() {

struct alignas(std::atomic_ref<ValueType>::required_alignment) Padded {
ValueType vals[unique] = {};
} padded;
};
Padded padded;

auto& vals = padded.vals;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ struct erase_fixture {
~liveness_empty_asserter() {
assert(liveness_alive_objects == 0);
}
} instance_empty; // destroyed after theList
};
liveness_empty_asserter instance_empty; // destroyed after theList

list<int, liveness_allocator<int>> theList;

Expand All @@ -278,7 +279,8 @@ struct erase_fixture {
// tests that the whole container is iterable
assert(is_sorted(theList.begin(), theList.end()));
}
} instance_nonempty; // destroyed before theList
};
post_asserter instance_nonempty; // destroyed before theList

void assert_iterators_consistent(const vector<list<int>::const_iterator>& iterators) {
assert(theList.size() == iterators.size() - 1);
Expand Down
12 changes: 8 additions & 4 deletions tests/std/tests/VSO_0961751_hash_range_erase/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ struct erase_fixture {
~liveness_empty_asserter() {
assert(liveness_alive_objects == 0);
}
} instance_empty; // destroyed after theHash
};
liveness_empty_asserter instance_empty; // destroyed after theHash

using container = unordered_set<int, hash<int>, equal_to<>, liveness_allocator<int>>;
using iterator = container::iterator;
Expand All @@ -72,7 +73,8 @@ struct erase_fixture {
== (_ITERATOR_DEBUG_LEVEL != 0) * 2 + 1 + theHash.size() + theHash.bucket_count() * 2);
theHash._Stl_internal_check_container_invariants();
}
} instance_nonempty; // destroyed before theHash
};
post_asserter instance_nonempty; // destroyed before theHash

void assert_iterators_consistent(const vector<iterator>& iterators) {
assert(theHash.size() == iterators.size() - 1);
Expand Down Expand Up @@ -293,7 +295,8 @@ struct erase_bucket_consistency_fixture {
~liveness_empty_asserter() {
assert(liveness_alive_objects == 0);
}
} instance_empty; // destroyed after theHash
};
liveness_empty_asserter instance_empty; // destroyed after theHash

using container = unordered_set<elem, hash<elem>, equal_to<>, liveness_allocator<elem>>;
container theHash;
Expand All @@ -308,7 +311,8 @@ struct erase_bucket_consistency_fixture {
assert(distance(theHash.begin(), theHash.end()) == static_cast<ptrdiff_t>(theHash.size()));
theHash._Stl_internal_check_container_invariants();
}
} instance_nonempty; // destroyed before theHash
};
post_asserter instance_nonempty; // destroyed before theHash

size_t zeroBucket;
size_t midBucket;
Expand Down