diff --git a/stl/inc/cmath b/stl/inc/cmath index 5895847f4fd..cdc55d438d4 100644 --- a/stl/inc/cmath +++ b/stl/inc/cmath @@ -1246,8 +1246,8 @@ template _NODISCARD constexpr _Ty _Common_lerp(const _Ty _ArgA, const _Ty _ArgB, const _Ty _ArgT) noexcept { // on a line intersecting {(0.0, _ArgA), (1.0, _ArgB)}, return the Y value for X == _ArgT - const bool _T_is_finite = _STD _Is_finite(_ArgT); - if (_T_is_finite && _STD _Is_finite(_ArgA) && _STD _Is_finite(_ArgB)) { + const bool _T_is_finite = _Is_finite(_ArgT); + if (_T_is_finite && _Is_finite(_ArgA) && _Is_finite(_ArgB)) { // 99% case, put it first; this block comes from P0811R3 if ((_ArgA <= 0 && _ArgB >= 0) || (_ArgA >= 0 && _ArgB <= 0)) { // exact, monotonic, bounded, determinate, and (for _ArgA == _ArgB == 0) consistent: @@ -1276,24 +1276,24 @@ _NODISCARD constexpr _Ty _Common_lerp(const _Ty _ArgA, const _Ty _ArgB, const _T } if (_STD is_constant_evaluated()) { - if (_STD _Is_nan(_ArgA)) { + if (_Is_nan(_ArgA)) { return _ArgA; } - if (_STD _Is_nan(_ArgB)) { + if (_Is_nan(_ArgB)) { return _ArgB; } - if (_STD _Is_nan(_ArgT)) { + if (_Is_nan(_ArgT)) { return _ArgT; } } else { // raise FE_INVALID if at least one of _ArgA, _ArgB, and _ArgT is signaling NaN - if (_STD _Is_nan(_ArgA) || _STD _Is_nan(_ArgB)) { + if (_Is_nan(_ArgA) || _Is_nan(_ArgB)) { return (_ArgA + _ArgB) + _ArgT; } - if (_STD _Is_nan(_ArgT)) { + if (_Is_nan(_ArgT)) { return _ArgT + _ArgT; } } diff --git a/stl/inc/numeric b/stl/inc/numeric index 687bc8a988a..c6f78d947e7 100644 --- a/stl/inc/numeric +++ b/stl/inc/numeric @@ -615,15 +615,15 @@ template && !is_same_v) { if (_STD is_constant_evaluated()) { - if (_STD _Is_nan(_Val1)) { + if (_Is_nan(_Val1)) { return _Val1; } - if (_STD _Is_nan(_Val2)) { + if (_Is_nan(_Val2)) { return _Val2; } } else { - if (_STD _Is_nan(_Val1) || _STD _Is_nan(_Val2)) { + if (_Is_nan(_Val1) || _Is_nan(_Val2)) { // raise FE_INVALID if at least one of _Val1 and _Val2 is signaling NaN return _Val1 + _Val2; } diff --git a/stl/src/filesys.cpp b/stl/src/filesys.cpp index 7a734059a48..3218e6e5e6d 100644 --- a/stl/src/filesys.cpp +++ b/stl/src/filesys.cpp @@ -264,9 +264,9 @@ _FS_DLL unsigned long long __CLRCALL_PURE_OR_CDECL _File_size(const wchar_t* _Fn // 1600 is excluded, 1700/1800 are not leap years // 1 partial century with 17 leap years: // 1900 is not a leap year -// 1904 is leap year #1 -// 1908 is leap year #2 -// 1968 is leap year #17 +// 1904 is leap year number 1 +// 1908 is leap year number 2 +// 1968 is leap year number 17 constexpr uint64_t _Win_ticks_per_second = 10000000ULL; diff --git a/tests/std/include/floating_point_test_cases.hpp b/tests/std/include/floating_point_test_cases.hpp index 46b8172ead1..d463fb8f3f7 100644 --- a/tests/std/include/floating_point_test_cases.hpp +++ b/tests/std/include/floating_point_test_cases.hpp @@ -62,13 +62,13 @@ constexpr std::pair floating_point_test_cases_double[] = {"2.2250738585072004e-308", 0x000FFFFFFFFFFFFEULL}, {"2.2250738585072010e-308", 0x000FFFFFFFFFFFFFULL}, - // DevDiv#576315 "I/O library incorrect rounds floating point numbers on input" - // DevDiv#616647 "Visual C++ 11: iostream bug: incorrect input streaming of the smallest normal double and some + // DevDiv-576315 "I/O library incorrect rounds floating point numbers on input" + // DevDiv-616647 "Visual C++ 11: iostream bug: incorrect input streaming of the smallest normal double and some // denormals" - // DevDiv#730414 "iostreams is still misparsing floating-point" - // DevDiv#938627 "parsing float values using std::istream gives results inconsistent with sscanf() and with C++ + // DevDiv-730414 "iostreams is still misparsing floating-point" + // DevDiv-938627 "parsing float values using std::istream gives results inconsistent with sscanf() and with C++ // compiler" - // DevDiv#961116 "floating point string conversion accuracy" + // DevDiv-961116 "floating point string conversion accuracy" {"2.2250738585072014e-308", 0x0010000000000000ULL}, // DBL_MIN {"1.7976931348623158e+308", 0x7FEFFFFFFFFFFFFFULL}, // DBL_MAX {"4.26144921954407e-309", 0x00031076B2F00000ULL}, @@ -257,13 +257,13 @@ constexpr std::pair floating_point_test_cases_float[] = { {"1.1754940705625946e-38", 0x007FFFFEU}, {"1.1754942106924411e-38", 0x007FFFFFU}, - // DevDiv#576315 "I/O library incorrect rounds floating point numbers on input" - // DevDiv#616647 "Visual C++ 11: iostream bug: incorrect input streaming of the smallest normal double and some + // DevDiv-576315 "I/O library incorrect rounds floating point numbers on input" + // DevDiv-616647 "Visual C++ 11: iostream bug: incorrect input streaming of the smallest normal double and some // denormals" - // DevDiv#730414 "iostreams is still misparsing floating-point" - // DevDiv#938627 "parsing float values using std::istream gives results inconsistent with sscanf() and with C++ + // DevDiv-730414 "iostreams is still misparsing floating-point" + // DevDiv-938627 "parsing float values using std::istream gives results inconsistent with sscanf() and with C++ // compiler" - // DevDiv#961116 "floating point string conversion accuracy" + // DevDiv-961116 "floating point string conversion accuracy" {"1.175494351e-38", 0x00800000U}, // FLT_MIN {"3.402823466e+38", 0x7F7FFFFFU}, // FLT_MAX {"179.9999999999999855", 0x43340000U}, diff --git a/tests/std/include/instantiate_algorithms_op_deref.hpp b/tests/std/include/instantiate_algorithms_op_deref.hpp index 4ec4e0435e6..d2bfbab5e81 100644 --- a/tests/std/include/instantiate_algorithms_op_deref.hpp +++ b/tests/std/include/instantiate_algorithms_op_deref.hpp @@ -7,8 +7,8 @@ #include -// DevDiv#758138 "Several algorithms break with iterators that overload the comma operator." -// DevDiv#758134 "uninitialized_copy and uninitialized_copy_n break with classes that overload operator &." +// DevDiv-758138 "Several algorithms break with iterators that overload the comma operator." +// DevDiv-758134 "uninitialized_copy and uninitialized_copy_n break with classes that overload operator &." // ADL will search this namespace for op,(). namespace Meow { @@ -310,7 +310,7 @@ void test() { Meow::BasicBidIt{}, Meow::BasicRanIt{}, Meow::BasicOutIt{11, 22}); } -// Also test DevDiv#938759 ": is_assignable should tolerate overloaded comma operators [libcxx]". +// Also test DevDiv-938759 ": is_assignable should tolerate overloaded comma operators [libcxx]". #define STATIC_ASSERT(...) static_assert(__VA_ARGS__, #__VA_ARGS__) STATIC_ASSERT(std::is_assignable_v); diff --git a/tests/std/tests/Dev09_119644_compiler_option_gz/test.cpp b/tests/std/tests/Dev09_119644_compiler_option_gz/test.cpp index 1f5964b0740..ffa08916d92 100644 --- a/tests/std/tests/Dev09_119644_compiler_option_gz/test.cpp +++ b/tests/std/tests/Dev09_119644_compiler_option_gz/test.cpp @@ -8,6 +8,6 @@ int main() { #else int __cdecl main() { #endif - // Test Dev10#465793 "iostreams: is incompatible with /Gr and /Gz". + // Test Dev10-465793 "iostreams: is incompatible with /Gr and /Gz". std::locale loc("english_US"); } diff --git a/tests/std/tests/Dev09_153419_tr1_allocators/test.cpp b/tests/std/tests/Dev09_153419_tr1_allocators/test.cpp index e82ad3bc489..50abbf12489 100644 --- a/tests/std/tests/Dev09_153419_tr1_allocators/test.cpp +++ b/tests/std/tests/Dev09_153419_tr1_allocators/test.cpp @@ -395,7 +395,7 @@ int main() { #endif // _HAS_FUNCTION_ALLOCATOR_SUPPORT { - // Test Dev10#531321 "function: tr1::function memory leak". + // Test Dev10-531321 "function: tr1::function memory leak". Big b(10, 20, 30, 40); function f; diff --git a/tests/std/tests/Dev09_158181_tr1_unordered_meow_swap/test.cpp b/tests/std/tests/Dev09_158181_tr1_unordered_meow_swap/test.cpp index 9696d173537..8692ce252ce 100644 --- a/tests/std/tests/Dev09_158181_tr1_unordered_meow_swap/test.cpp +++ b/tests/std/tests/Dev09_158181_tr1_unordered_meow_swap/test.cpp @@ -30,7 +30,7 @@ void assert_throws(Fx fn) noexcept { } } -// Test DDB#158181. unordered_set.swap() was O(N), throwing, and invalidating iterators, which was bad. +// Test DDB-158181. unordered_set.swap() was O(N), throwing, and invalidating iterators, which was bad. void test_ddb_158181() { unordered_set x; x.insert(11); diff --git a/tests/std/tests/Dev09_172666_tr1_tuple_odr/test.cpp b/tests/std/tests/Dev09_172666_tr1_tuple_odr/test.cpp index 5f18f8dedea..ae6e80c61e9 100644 --- a/tests/std/tests/Dev09_172666_tr1_tuple_odr/test.cpp +++ b/tests/std/tests/Dev09_172666_tr1_tuple_odr/test.cpp @@ -9,7 +9,7 @@ namespace fs = std::experimental::filesystem; int meow(); inline bool test_wchar_t_minus() { - // Test for DevDiv Bug#1004799: : /Zc:wchar_t- explodes. Calling file_size + // Test for DevDiv-1004799: : /Zc:wchar_t- explodes. Calling file_size // should cause the blow-up to occur if we are wchar_t incorrect. Test is disabled // (i.e. always passes) if compiled with /clr:pure and /Zc:wchar_t-, as it triggers // LNK2031: calling convention missing in metadata errors, which are irrelevant here. diff --git a/tests/std/tests/Dev09_174589_tr1_function_storing_pmf_called_with_reference_or_pointer/test.cpp b/tests/std/tests/Dev09_174589_tr1_function_storing_pmf_called_with_reference_or_pointer/test.cpp index fb23c6e66f0..1b4ba4b844b 100644 --- a/tests/std/tests/Dev09_174589_tr1_function_storing_pmf_called_with_reference_or_pointer/test.cpp +++ b/tests/std/tests/Dev09_174589_tr1_function_storing_pmf_called_with_reference_or_pointer/test.cpp @@ -28,7 +28,7 @@ void test_orig() { } -// DevDiv#294051 ": std::function has lost the ability to invoke PMFs/PMDs on various things" +// DevDiv-294051 ": std::function has lost the ability to invoke PMFs/PMDs on various things" // FDIS 20.8.11.2 [func.wrap.func] specifies: // template class function diff --git a/tests/std/tests/Dev09_181509_tr1_inf_loop_uniform_int_ull/test.cpp b/tests/std/tests/Dev09_181509_tr1_inf_loop_uniform_int_ull/test.cpp index 9554a5615f7..0859477411d 100644 --- a/tests/std/tests/Dev09_181509_tr1_inf_loop_uniform_int_ull/test.cpp +++ b/tests/std/tests/Dev09_181509_tr1_inf_loop_uniform_int_ull/test.cpp @@ -28,7 +28,7 @@ void microtest() { using fp_t = void (*)(); template void add_tests(vector& tests) { - // Test DevDiv#83370 "uniform_int_distribution isn't uniform". + // Test DevDiv-83370 "uniform_int_distribution isn't uniform". tests.insert( tests.end(), { microtest, @@ -55,7 +55,7 @@ void add_tests(vector& tests) { microtest, microtest, microtest, - microtest, // Test DDB#181509 "TR1 VC9 SP1: Infinite loop in + microtest, // Test DDB-181509 "TR1 VC9 SP1: Infinite loop in // uniform_int::_Eval()". microtest, diff --git a/tests/std/tests/Dev09_196243_tr1_enable_shared_from_this_ops/test.cpp b/tests/std/tests/Dev09_196243_tr1_enable_shared_from_this_ops/test.cpp index 71d6180947b..374d3dee433 100644 --- a/tests/std/tests/Dev09_196243_tr1_enable_shared_from_this_ops/test.cpp +++ b/tests/std/tests/Dev09_196243_tr1_enable_shared_from_this_ops/test.cpp @@ -12,7 +12,7 @@ struct X : enable_shared_from_this { }; int main() { - // Test DDB#196243 "TR1 VC9 SP1: enable_shared_from_this's copy ctor and copy assignment operator do too much work". + // Test DDB-196243 "TR1 VC9 SP1: enable_shared_from_this's copy ctor and copy assignment operator do too much work". { const shared_ptr sp1(new X(11)); const shared_ptr sp2(new X(22)); @@ -37,7 +37,7 @@ int main() { assert(raw2->shared_from_this() != sp1); } - // Test DDB#197048 "[VS2008 / TR1] still got problems with shared_ptr". + // Test DDB-197048 "[VS2008 / TR1] still got problems with shared_ptr". { shared_ptr sp1(static_cast(new int(6))); shared_ptr sp2(static_cast(new int(7))); @@ -48,7 +48,7 @@ int main() { assert(*sp3 == 8); } - // Test Dev10#654944 "shared_ptr: assignment is messed up". + // Test Dev10-654944 "shared_ptr: assignment is messed up". { shared_ptr p(new int(1729)); shared_ptr z; @@ -63,7 +63,7 @@ int main() { assert(!z); } - // Test DevDiv#1178296 ": shared_ptr doesn't work with enable_shared_from_this". + // Test DevDiv-1178296 ": shared_ptr doesn't work with enable_shared_from_this". { const auto sp1 = make_shared(100); const auto sp2 = make_shared(200); diff --git a/tests/std/tests/Dev10_544258_heterogeneous_comparisons/test.cpp b/tests/std/tests/Dev10_544258_heterogeneous_comparisons/test.cpp index 55ed5f530d4..a2501ca712e 100644 --- a/tests/std/tests/Dev10_544258_heterogeneous_comparisons/test.cpp +++ b/tests/std/tests/Dev10_544258_heterogeneous_comparisons/test.cpp @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// Dev10#544258 "STL/xutility: Debug validation of predicate classes fail on bound predicates" -// DevDiv#813065 ": C++ stdlib comparator debugging breaks compile of custom Comparators in std::equal_range +// Dev10-544258 "STL/xutility: Debug validation of predicate classes fail on bound predicates" +// DevDiv-813065 ": C++ stdlib comparator debugging breaks compile of custom Comparators in std::equal_range // family of functions" #include diff --git a/tests/std/tests/Dev10_561430_list_and_tree_leaks/test.cpp b/tests/std/tests/Dev10_561430_list_and_tree_leaks/test.cpp index ae713cfd200..9c21039cc74 100644 --- a/tests/std/tests/Dev10_561430_list_and_tree_leaks/test.cpp +++ b/tests/std/tests/Dev10_561430_list_and_tree_leaks/test.cpp @@ -24,7 +24,7 @@ int g_mallocs = 0; -// Also test DevDiv#483844 and DevDiv#781187, minimal allocator requirements. +// Also test DevDiv-483844 and DevDiv-781187, minimal allocator requirements. template struct Mallocator { typedef T value_type; @@ -192,7 +192,7 @@ int main() { } -// Also test DevDiv#819467 ": Custom allocator with virtual max_size function causes infinite recursion". +// Also test DevDiv-819467 ": Custom allocator with virtual max_size function causes infinite recursion". template struct WeirdAllocator { diff --git a/tests/std/tests/Dev10_635436_shared_ptr_reset/test.cpp b/tests/std/tests/Dev10_635436_shared_ptr_reset/test.cpp index 176a3ff8d14..0dd30270dce 100644 --- a/tests/std/tests/Dev10_635436_shared_ptr_reset/test.cpp +++ b/tests/std/tests/Dev10_635436_shared_ptr_reset/test.cpp @@ -118,7 +118,7 @@ Kitten::~Kitten() { } int main() { - // Dev10#635436 "shared_ptr: reset() must behave as if it is implemented with swap()" + // Dev10-635436 "shared_ptr: reset() must behave as if it is implemented with swap()" results.emplace_back("BEGIN", 0); Cat* p0 = new Cat(1729); @@ -152,7 +152,7 @@ int main() { results.emplace_back("END", 3); - // DevDiv#523246 "std::unique_ptr deletes owned object before resetting pointer rather than after." + // DevDiv-523246 "std::unique_ptr deletes owned object before resetting pointer rather than after." results.emplace_back("BEGIN", 4); Kitten* p4 = new Kitten(257); diff --git a/tests/std/tests/Dev10_682964_stable_sort_warnings/test.cpp b/tests/std/tests/Dev10_682964_stable_sort_warnings/test.cpp index 9239d678c3c..a8653938c60 100644 --- a/tests/std/tests/Dev10_682964_stable_sort_warnings/test.cpp +++ b/tests/std/tests/Dev10_682964_stable_sort_warnings/test.cpp @@ -62,7 +62,7 @@ int main() { { - // Also test DevDiv#957501 ": stable_sort calls self-move-assignment operator". + // Also test DevDiv-957501 ": stable_sort calls self-move-assignment operator". class NoSelfMove { public: diff --git a/tests/std/tests/Dev10_722102_shared_ptr_nullptr/test.cpp b/tests/std/tests/Dev10_722102_shared_ptr_nullptr/test.cpp index bc6fa5e314e..0c753db3ddd 100644 --- a/tests/std/tests/Dev10_722102_shared_ptr_nullptr/test.cpp +++ b/tests/std/tests/Dev10_722102_shared_ptr_nullptr/test.cpp @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// Dev10#722102 "STL: Get nullptr overloads" -// DevDiv#520681 "Faulty implementation of shared_ptr(nullptr_t) constructor" +// Dev10-722102 "STL: Get nullptr overloads" +// DevDiv-520681 "Faulty implementation of shared_ptr(nullptr_t) constructor" #include #include diff --git a/tests/std/tests/Dev10_766948_insert_ambiguity/test.cpp b/tests/std/tests/Dev10_766948_insert_ambiguity/test.cpp index a73e3632715..8340d994fec 100644 --- a/tests/std/tests/Dev10_766948_insert_ambiguity/test.cpp +++ b/tests/std/tests/Dev10_766948_insert_ambiguity/test.cpp @@ -16,7 +16,7 @@ using namespace std; -// Dev10#766948 "STL: insert() ambiguity in all associative containers except map and set" +// Dev10-766948 "STL: insert() ambiguity in all associative containers except map and set" // LWG-2005 "unordered_map::insert(T&&) protection should apply to map too" // LWG-2354 "Unnecessary copying when inserting into maps with braced-init syntax" diff --git a/tests/std/tests/Dev10_860410_bitset_ctors/test.cpp b/tests/std/tests/Dev10_860410_bitset_ctors/test.cpp index 62df05c9208..b6516c7fadc 100644 --- a/tests/std/tests/Dev10_860410_bitset_ctors/test.cpp +++ b/tests/std/tests/Dev10_860410_bitset_ctors/test.cpp @@ -140,7 +140,7 @@ int main() { test_Getword(); } -// Also test DevDiv#917456 ": none() and any() return incorrect count after call set() function in a +// Also test DevDiv-917456 ": none() and any() return incorrect count after call set() function in a // std::bitset<0> object [libcxx]". void test_bitset0(const bitset<0>& b) { assert(b.to_ulong() == 0); @@ -182,7 +182,7 @@ void test_DevDiv917456() { } } -// Also test DevDiv#931383 ": We need to validate all characters and use traits::eq()". +// Also test DevDiv-931383 ": We need to validate all characters and use traits::eq()". void test(const string& str, const size_t pos, const size_t n, const string& expected) noexcept { try { bitset<8> b(str, pos, n, 'o', 'i'); @@ -215,7 +215,7 @@ void test_DevDiv931383() { test("FFiioiiiGG", 2, 6, "00110111"); } -// Also test Dev10#479284 "C6326 when running static analysis with ". +// Also test Dev10-479284 "C6326 when running static analysis with ". template class std::bitset<7>; template class std::bitset<32>; diff --git a/tests/std/tests/Dev10_860421_deque_push_back_pop_front/test.cpp b/tests/std/tests/Dev10_860421_deque_push_back_pop_front/test.cpp index c19bdddfed6..c1857bde5ea 100644 --- a/tests/std/tests/Dev10_860421_deque_push_back_pop_front/test.cpp +++ b/tests/std/tests/Dev10_860421_deque_push_back_pop_front/test.cpp @@ -35,7 +35,7 @@ int main() { test_391805(); } -// Also test Dev10#391805 "STL: Prefast error in deque". +// Also test Dev10-391805 "STL: Prefast error in deque". void test_391805() { deque d; diff --git a/tests/std/tests/Dev10_908702_string_memory_leak/test.cpp b/tests/std/tests/Dev10_908702_string_memory_leak/test.cpp index a6e12c9e5ec..65ef7e531f7 100644 --- a/tests/std/tests/Dev10_908702_string_memory_leak/test.cpp +++ b/tests/std/tests/Dev10_908702_string_memory_leak/test.cpp @@ -36,7 +36,7 @@ int main() { assert(!_CrtDumpMemoryLeaks()); #endif - // Also test DevDiv#846054 ": Spurious memory leaks". + // Also test DevDiv-846054 ": Spurious memory leaks". locale::global(locale("")); #ifdef _DEBUG @@ -44,7 +44,7 @@ int main() { #endif } -// Also test DevDiv#810608 ": [torino][boost]error C2665: +// Also test DevDiv-810608 ": [torino][boost]error C2665: // 'std::_Crt_new_delete::operator new' : none of the 2 overloads could convert all the argument types". void meow(void* pv) { // Saying "new" instead of "::new" is intentional here. diff --git a/tests/std/tests/Dev11_0000000_quoted/test.cpp b/tests/std/tests/Dev11_0000000_quoted/test.cpp index cdc1102d33d..b2f0e43c8a0 100644 --- a/tests/std/tests/Dev11_0000000_quoted/test.cpp +++ b/tests/std/tests/Dev11_0000000_quoted/test.cpp @@ -169,12 +169,12 @@ int main() { // Also test VSO-666592 "std::quoted fails to properly extract delimiter" { - const std::string expectedStrings[] = { + const string expectedStrings[] = { "spaces"s, "with"s, "some quote"s, "and another quote"s, "then"s, "more"s, "spaces"s}; - std::istringstream iss13(R"(spaces with "some quote" "and another quote" then more spaces)"); - std::string out; + istringstream iss13(R"(spaces with "some quote" "and another quote" then more spaces)"); + string out; for (const auto& expected : expectedStrings) { - iss13 >> std::quoted(out); + iss13 >> quoted(out); assert(!iss13.fail()); assert(out == expected); } diff --git a/tests/std/tests/Dev11_0000000_tuple_cat/test.cpp b/tests/std/tests/Dev11_0000000_tuple_cat/test.cpp index 0dee5434c76..ff2a03fee36 100644 --- a/tests/std/tests/Dev11_0000000_tuple_cat/test.cpp +++ b/tests/std/tests/Dev11_0000000_tuple_cat/test.cpp @@ -211,7 +211,7 @@ int main() { } } -// Also test DevDiv#1205400 "C++ compiler: static_assert in std::tuple_element prevents SFINAE". +// Also test DevDiv-1205400 "C++ compiler: static_assert in std::tuple_element prevents SFINAE". template struct HasTupleElement : false_type {}; @@ -221,7 +221,7 @@ struct HasTupleElement>> : true_type {}; STATIC_ASSERT(!HasTupleElement::value); STATIC_ASSERT(HasTupleElement>::value); -// Also test DevDiv#1192603 ": tuple_size's static_assert is problematic". +// Also test DevDiv-1192603 ": tuple_size's static_assert is problematic". template struct HasTupleSize : false_type {}; diff --git a/tests/std/tests/Dev11_0135139_vector_bool_equality_perf/test.cpp b/tests/std/tests/Dev11_0135139_vector_bool_equality_perf/test.cpp index 4036fe360c6..2aa72a7adaf 100644 --- a/tests/std/tests/Dev11_0135139_vector_bool_equality_perf/test.cpp +++ b/tests/std/tests/Dev11_0135139_vector_bool_equality_perf/test.cpp @@ -55,7 +55,7 @@ int main() { } { - // Also test DevDiv#850453 ": Missing emplace methods in std::vector container". + // Also test DevDiv-850453 ": Missing emplace methods in std::vector container". vector v(47, allocator()); diff --git a/tests/std/tests/Dev11_0235721_async_and_packaged_task/test.cpp b/tests/std/tests/Dev11_0235721_async_and_packaged_task/test.cpp index b206a423ee3..69a285092b6 100644 --- a/tests/std/tests/Dev11_0235721_async_and_packaged_task/test.cpp +++ b/tests/std/tests/Dev11_0235721_async_and_packaged_task/test.cpp @@ -18,7 +18,7 @@ using namespace std::placeholders; #define STATIC_ASSERT(...) static_assert(__VA_ARGS__, #__VA_ARGS__) -// DevDiv#235721 ": async() and packaged_task don't compile for void and T& return types" +// DevDiv-235721 ": async() and packaged_task don't compile for void and T& return types" void test_DevDiv_235721() { auto void_lambda = []() {}; @@ -52,7 +52,7 @@ void test_DevDiv_235721() { } -// DevDiv#586551 ": future_errc message() and what() don't work" +// DevDiv-586551 ": future_errc message() and what() don't work" void test_message(const future_errc fe, const string& s) { assert(make_error_code(fe).message() == s); @@ -70,7 +70,7 @@ void test_DevDiv_586551() { } -// DevDiv#725337 ": std::packaged_task where T is void or a reference class are not movable" +// DevDiv-725337 ": std::packaged_task where T is void or a reference class are not movable" void test_DevDiv_725337() { auto void_lambda = []() {}; diff --git a/tests/std/tests/Dev11_0253803_debug_pointer/test.cpp b/tests/std/tests/Dev11_0253803_debug_pointer/test.cpp index 034ab82dfb0..637cd1f97dd 100644 --- a/tests/std/tests/Dev11_0253803_debug_pointer/test.cpp +++ b/tests/std/tests/Dev11_0253803_debug_pointer/test.cpp @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// DevDiv#253803 ": merge() asserts when given null src/dest" +// DevDiv-253803 ": merge() asserts when given null src/dest" #include #include diff --git a/tests/std/tests/Dev11_0272959_make_signed/test.cpp b/tests/std/tests/Dev11_0272959_make_signed/test.cpp index 2bd4944d08e..eff551f993c 100644 --- a/tests/std/tests/Dev11_0272959_make_signed/test.cpp +++ b/tests/std/tests/Dev11_0272959_make_signed/test.cpp @@ -156,7 +156,7 @@ void example() { STATIC_ASSERT(!is_trivial_v); - // DevDiv#517460 "is_*_constructible type traits are broken for reference types" + // DevDiv-517460 "is_*_constructible type traits are broken for reference types" STATIC_ASSERT(is_copy_constructible_v); STATIC_ASSERT(is_copy_constructible_v); STATIC_ASSERT(is_move_constructible_v); diff --git a/tests/std/tests/Dev11_0299014_exception_ptr_requirements/test.cpp b/tests/std/tests/Dev11_0299014_exception_ptr_requirements/test.cpp index d13b7b90f31..e5d7ba58b18 100644 --- a/tests/std/tests/Dev11_0299014_exception_ptr_requirements/test.cpp +++ b/tests/std/tests/Dev11_0299014_exception_ptr_requirements/test.cpp @@ -170,7 +170,7 @@ int main() { } { - // Also test DevDiv#1210471 "std::rethrow_exception is not [[noreturn]]". + // Also test DevDiv-1210471 "std::rethrow_exception is not [[noreturn]]". auto lambda = []() -> double { rethrow_exception(make_exception_ptr(1729)); }; diff --git a/tests/std/tests/Dev11_0316853_find_memchr_optimization/test.cpp b/tests/std/tests/Dev11_0316853_find_memchr_optimization/test.cpp index 6e6475be2f9..e621519332d 100644 --- a/tests/std/tests/Dev11_0316853_find_memchr_optimization/test.cpp +++ b/tests/std/tests/Dev11_0316853_find_memchr_optimization/test.cpp @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// DevDiv#316853 ": find()'s memchr() optimization is incorrect" -// DevDiv#468500 ": find()'s memchr() optimization is insufficiently aggressive" +// DevDiv-316853 ": find()'s memchr() optimization is incorrect" +// DevDiv-468500 ": find()'s memchr() optimization is insufficiently aggressive" #pragma warning(disable : 4389) // signed/unsigned mismatch #pragma warning(disable : 4805) // '==': unsafe mix of type '_Ty' and type 'const _Ty' in operation @@ -30,7 +30,7 @@ bool operator==(int x, const Cat& c) { } int main() { - { // DevDiv#316853 ": find()'s memchr() optimization is incorrect" + { // DevDiv-316853 ": find()'s memchr() optimization is incorrect" vector v; v.push_back(22); v.push_back(33); diff --git a/tests/std/tests/Dev11_0377755_thread_ctor_move_only_types/test.cpp b/tests/std/tests/Dev11_0377755_thread_ctor_move_only_types/test.cpp index e4e08f40504..d1c0d64c9f7 100644 --- a/tests/std/tests/Dev11_0377755_thread_ctor_move_only_types/test.cpp +++ b/tests/std/tests/Dev11_0377755_thread_ctor_move_only_types/test.cpp @@ -30,7 +30,7 @@ class A { int i; }; -int main() { // DevDiv#377755 ": thread's ctor doesn't compile with movable-only arguments" +int main() { // DevDiv-377755 ": thread's ctor doesn't compile with movable-only arguments" std::vector t; std::unique_ptr p = std::make_unique(-1); // Check if std::thread ctor accepts move-only arguments. diff --git a/tests/std/tests/Dev11_0417110_nullptr_t_is_scalar/test.cpp b/tests/std/tests/Dev11_0417110_nullptr_t_is_scalar/test.cpp index 97452de10e5..21972eaac86 100644 --- a/tests/std/tests/Dev11_0417110_nullptr_t_is_scalar/test.cpp +++ b/tests/std/tests/Dev11_0417110_nullptr_t_is_scalar/test.cpp @@ -6,7 +6,7 @@ #define STATIC_ASSERT(...) static_assert(__VA_ARGS__, #__VA_ARGS__) // Regression test for: -// DevDiv2 #417110: is_scalar should be true +// DevDiv-417110: is_scalar should be true int main() { diff --git a/tests/std/tests/Dev11_0453373_codecvt_compiles/test.cpp b/tests/std/tests/Dev11_0453373_codecvt_compiles/test.cpp index cd66697b19a..892cec1301a 100644 --- a/tests/std/tests/Dev11_0453373_codecvt_compiles/test.cpp +++ b/tests/std/tests/Dev11_0453373_codecvt_compiles/test.cpp @@ -11,7 +11,7 @@ int main() {} // COMPILE-ONLY -// Regression test for DevDiv2 #453373 : codecvt_one_one compile errors +// Regression test for DevDiv-453373 : codecvt_one_one compile errors // Make sure we can instantiate the types from the problem headers: template class stdext::cvt::codecvt_one_one; diff --git a/tests/std/tests/Dev11_0483851_vector_debug_allocator_use/test.cpp b/tests/std/tests/Dev11_0483851_vector_debug_allocator_use/test.cpp index 41f62677079..a323504ec10 100644 --- a/tests/std/tests/Dev11_0483851_vector_debug_allocator_use/test.cpp +++ b/tests/std/tests/Dev11_0483851_vector_debug_allocator_use/test.cpp @@ -13,7 +13,7 @@ int main() {} // COMPILE-ONLY -// Regression test for DevDiv2 #483851 : [C++11] STL containers must use std::allocator_trait in debug mode +// Regression test for DevDiv-483851 : [C++11] STL containers must use std::allocator_traits in debug mode template struct simple_allocator : Base { diff --git a/tests/std/tests/Dev11_0485243_condition_variable_crash/test.cpp b/tests/std/tests/Dev11_0485243_condition_variable_crash/test.cpp index 41ac758338a..465c1b4c166 100644 --- a/tests/std/tests/Dev11_0485243_condition_variable_crash/test.cpp +++ b/tests/std/tests/Dev11_0485243_condition_variable_crash/test.cpp @@ -27,7 +27,7 @@ void assert_no_leaks() { void test_484720(); int main() { - // DevDiv#452211 ": init_at_thread_exit_mutex() creates a spurious memory leak" + // DevDiv-452211 ": init_at_thread_exit_mutex() creates a spurious memory leak" assert_no_leaks(); { @@ -54,7 +54,7 @@ int main() { assert_no_leaks(); { - // DevDiv#485243 "Crash in runtime library (msvcr110.dll)" + // DevDiv-485243 "Crash in runtime library (msvcr110.dll)" condition_variable cv; mutex m; @@ -85,7 +85,7 @@ int main() { assert_no_leaks(); { - // DevDiv#861298 "std::thread not fully initialized due to _Thr_set_null only setting id (not handle)" + // DevDiv-861298 "std::thread not fully initialized due to _Thr_set_null only setting id (not handle)" // native_handle()'s behavior is unspecified, but CreateThread() and _beginthreadex() // return null for failure, so this seems like a reasonable default. @@ -99,7 +99,7 @@ int main() { } -// DevDiv#484720 ": [c++std-lib-32966] Public service announcement concerning +// DevDiv-484720 ": [c++std-lib-32966] Public service announcement concerning // ~condition_variable_any()" template diff --git a/tests/std/tests/Dev11_0493504_error_category_lifetime/test.cpp b/tests/std/tests/Dev11_0493504_error_category_lifetime/test.cpp index 10891e785b1..99712972256 100644 --- a/tests/std/tests/Dev11_0493504_error_category_lifetime/test.cpp +++ b/tests/std/tests/Dev11_0493504_error_category_lifetime/test.cpp @@ -29,7 +29,7 @@ struct Global { Global global; int main() { - // Also test DevDiv#781294 ": Visual C++ 2013 RC system_category().equivalent function does not work". + // Also test DevDiv-781294 ": Visual C++ 2013 RC system_category().equivalent function does not work". const error_code code(ERROR_NOT_ENOUGH_MEMORY, system_category()); const error_condition cond = make_error_condition(errc::not_enough_memory); @@ -47,7 +47,7 @@ int main() { } -// Also test DevDiv#833886 ": comparisons should be free functions". +// Also test DevDiv-833886 ": comparisons should be free functions". bool test_code(const io_errc l, const error_code& r) { return l == r && l != r && l < r; } diff --git a/tests/std/tests/Dev11_0535636_functional_overhaul/test.cpp b/tests/std/tests/Dev11_0535636_functional_overhaul/test.cpp index 753569259ff..4369fb7fb11 100644 --- a/tests/std/tests/Dev11_0535636_functional_overhaul/test.cpp +++ b/tests/std/tests/Dev11_0535636_functional_overhaul/test.cpp @@ -685,7 +685,7 @@ STATIC_ASSERT(is_same_v, long>); STATIC_ASSERT(is_same_v, short>); STATIC_ASSERT(is_same_v, long>); -// Also test references to functions, DDB#198033. +// Also test references to functions, DDB-198033. using FuncRef = int (&)(float, double); STATIC_ASSERT(is_same_v, int>); @@ -724,7 +724,7 @@ int cube_noexcept(int n) noexcept { } -// Test DevDiv#391117 " reference_wrapper: reference_wrapper doesn't compile with pure virtual function call +// Test DevDiv-391117 " reference_wrapper: reference_wrapper doesn't compile with pure virtual function call // operators". struct BaseMeow { BaseMeow() {} @@ -751,7 +751,7 @@ void test_dev11_391117() { } -// Test DevDiv#535636 " reference_wrapper: reference_wrapper::get() doesn't compile". +// Test DevDiv-535636 " reference_wrapper: reference_wrapper::get() doesn't compile". void test_dev11_535636() { reference_wrapper rw(triple); @@ -767,7 +767,7 @@ void test_dev11_535636() { } -// Test DevDiv#794227 " reference_wrapper: ambiguous access of result_type - functional, xrefwrap". +// Test DevDiv-794227 " reference_wrapper: ambiguous access of result_type - functional, xrefwrap". template struct UnaryFunction { typedef Arg argument_type; @@ -806,7 +806,7 @@ void test_dev11_794227() { } -// Test DevDiv#868374 " reference_wrapper: Cannot assign a std::reference_wrapper object to another +// Test DevDiv-868374 " reference_wrapper: Cannot assign a std::reference_wrapper object to another // std::reference_wrapper object [libcxx]". void test_dev11_868374() { reference_wrapper rw(triple); @@ -927,7 +927,7 @@ struct Thing { class UnaryBinary { public: - // Originally for testing Dev10#539137 + // Originally for testing Dev10-539137 // "reference_wrapper: Doesn't handle classes that derive from both unary_function and binary_function". // The typedefs are tested elsewhere here (see SameResults and DifferentResults). @@ -1285,7 +1285,7 @@ STATIC_ASSERT(TestRWTypes::value); STATIC_ASSERT(TestRWTypes::value); STATIC_ASSERT(TestRWTypes::value); -// Test DevDiv#864867 " reference_wrapper: reference_wrapper should handle functors that are both unary and +// Test DevDiv-864867 " reference_wrapper: reference_wrapper should handle functors that are both unary and // binary [libs-conformance]". struct SameResults : UnaryFunction, BinaryFunction { @@ -1465,7 +1465,7 @@ void test_function() { // std::functions. - // Test DevDiv#759096 " function: std::function construction copies its target instead of moving". + // Test DevDiv-759096 " function: std::function construction copies its target instead of moving". { CopyMoveCounter<1> cmc0; CopyMoveCounter<1> cmc1(cmc0); @@ -1663,7 +1663,7 @@ void test_function() { } - // Test DevDiv#1010027 " function: std::function with return type void does not ignore return type on + // Test DevDiv-1010027 " function: std::function with return type void does not ignore return type on // assignment". { string s("ChooseAMovieTitle"); @@ -1712,8 +1712,8 @@ void test_function() { } - // Test DevDiv#294051 " function: std::function has lost the ability to invoke PMFs/PMDs on various - // things". Test DevDiv#789899 " function: std::function does not work for member functions". + // Test DevDiv-294051 " function: std::function has lost the ability to invoke PMFs/PMDs on various + // things". Test DevDiv-789899 " function: std::function does not work for member functions". { struct Y { int m_n; @@ -1862,7 +1862,7 @@ void test_function() { // Test bind(), user-reported bugs. void test_bind() { - // Test DDB#176058 "TR1: result_of doesn't accept result_type typedefs for references" (title is now bogus). + // Test DDB-176058 "TR1: result_of doesn't accept result_type typedefs for references" (title is now bogus). { struct PassThru { int& operator()(int& obj) const { @@ -1880,9 +1880,9 @@ void test_bind() { } - // Test DevDiv#343411 " bind: bind() and std::function don't work with rvalue references". - // Test DevDiv#410033 ": bind() doesn't work with rvalue reference signatures". - // Test DevDiv#862588 " bind: std::bind doesn't forward unbound arguments". + // Test DevDiv-343411 " bind: bind() and std::function don't work with rvalue references". + // Test DevDiv-410033 ": bind() doesn't work with rvalue reference signatures". + // Test DevDiv-862588 " bind: std::bind doesn't forward unbound arguments". { #ifndef _M_CEE_PURE @@ -1921,8 +1921,8 @@ void test_bind() { } -// Test DevDiv#487679 " bind: MSVS 2012 C++ std::bind illegal indirection compiler error". -// Test DevDiv#617421 " bind: Bind failing to compile with a vector of functions". +// Test DevDiv-487679 " bind: MSVS 2012 C++ std::bind illegal indirection compiler error". +// Test DevDiv-617421 " bind: Bind failing to compile with a vector of functions". { struct BaseFunctor { int operator()(int n) const { @@ -1940,7 +1940,7 @@ void test_bind() { } -// Test DevDiv#505570 " bind: Can't bind a pointer to a data member using a pointer, smart pointer or +// Test DevDiv-505570 " bind: Can't bind a pointer to a data member using a pointer, smart pointer or // iterator to the object". { struct Object { @@ -1964,7 +1964,7 @@ void test_bind() { } -// Test DevDiv#535246 " bind: Cannot call const forwarding call wrapper result of std::bind". +// Test DevDiv-535246 " bind: Cannot call const forwarding call wrapper result of std::bind". { const auto cb = bind(&quadruple, 11); @@ -2213,7 +2213,7 @@ _CONSTEXPR20 bool test_more_bind() { } -// Test DevDiv#1160769 ": bind()'s cv-overloaded function call operators are triggering Expression SFINAE +// Test DevDiv-1160769 ": bind()'s cv-overloaded function call operators are triggering Expression SFINAE // problems". struct Test1160769 { void method(const int&) {} diff --git a/tests/std/tests/Dev11_0696045_future_wait_for/test.cpp b/tests/std/tests/Dev11_0696045_future_wait_for/test.cpp index 8309c259829..d8a4987cb98 100644 --- a/tests/std/tests/Dev11_0696045_future_wait_for/test.cpp +++ b/tests/std/tests/Dev11_0696045_future_wait_for/test.cpp @@ -12,7 +12,7 @@ int func() { } int main() { - { // DevDiv#482796 "C++11 unexpected behavior for std::future::wait_for and std::packaged_task" + { // DevDiv-482796 "C++11 unexpected behavior for std::future::wait_for and std::packaged_task" packaged_task pt(func); future f = pt.get_future(); @@ -26,7 +26,7 @@ int main() { assert(f.get() == 1729); } - { // DevDiv#696045 ": The function wait_for() wait until timeout." + { // DevDiv-696045 ": The function wait_for() wait until timeout." future f = async(launch::deferred, func); const auto dur = chrono::minutes(5); diff --git a/tests/std/tests/Dev11_0835323_to_string/test.cpp b/tests/std/tests/Dev11_0835323_to_string/test.cpp index e3bec9d0513..cf9c341bc8d 100644 --- a/tests/std/tests/Dev11_0835323_to_string/test.cpp +++ b/tests/std/tests/Dev11_0835323_to_string/test.cpp @@ -20,9 +20,9 @@ void assert_out_of_range(F f) noexcept { } } -// DevDiv#96290 "[Product Issue] to_string doesn't work with the param LDBL_MAX" -// DevDiv#730419 ": std::to_string documentation & code disparity" -// DevDiv#835323 ": Bad to_string() result for infinity" +// DevDiv-96290 "[Product Issue] to_string doesn't work with the param LDBL_MAX" +// DevDiv-730419 ": std::to_string documentation & code disparity" +// DevDiv-835323 ": Bad to_string() result for infinity" int main() { assert(to_string(numeric_limits::min()) == "-2147483648"); @@ -145,7 +145,7 @@ int main() { assert(to_wstring(numeric_limits::infinity()) == L"inf"); - // Also test DevDiv#875295 ": std::stof returns 1.#INF instead of throwing out_of_range [libcxx]". + // Also test DevDiv-875295 ": std::stof returns 1.#INF instead of throwing out_of_range [libcxx]". assert_out_of_range([] { stof("1.2e60"); }); @@ -166,7 +166,7 @@ int main() { assert_out_of_range([] { stof(L"-1.5e63"); }); - // Also test DevDiv#1113936 "std::stod incorrectly throws exception on some inputs, violating STL specification". + // Also test DevDiv-1113936 "std::stod incorrectly throws exception on some inputs, violating STL specification". for (const char* const p : {"inf", "Inf", "INF", "infinity", "Infinity", "INFINITY"}) { assert(isinf(stof(p))); diff --git a/tests/std/tests/Dev11_0836436_get_time/test.cpp b/tests/std/tests/Dev11_0836436_get_time/test.cpp index aacf42f84b9..78c69d18074 100644 --- a/tests/std/tests/Dev11_0836436_get_time/test.cpp +++ b/tests/std/tests/Dev11_0836436_get_time/test.cpp @@ -13,9 +13,9 @@ using namespace std; -// DevDiv#821672 ": visual studio.net 2013 time libraries buggy (%x %X) - time_get" -// DevDiv#836436 ": get_time()'s AM/PM parsing is broken" -// DevDiv#872926 ": time_get::get parsing format string gets tm::tm_hour wrong [libcxx]" +// DevDiv-821672 ": visual studio.net 2013 time libraries buggy (%x %X) - time_get" +// DevDiv-836436 ": get_time()'s AM/PM parsing is broken" +// DevDiv-872926 ": time_get::get parsing format string gets tm::tm_hour wrong [libcxx]" tm helper(const char* const s, const char* const fmt) { tm t{}; @@ -117,7 +117,7 @@ int main() { typedef istreambuf_iterator Iter; -// DevDiv#640278 ": time_get::do_get_year() thinks the world will end in 2035" +// DevDiv-640278 ": time_get::do_get_year() thinks the world will end in 2035" void test_year(const string& str, const ios_base::iostate expected_err, const int expected_tm_year) { istringstream iss(str); ios_base::iostate err = ios_base::goodbit; @@ -152,7 +152,7 @@ void test_640278() { test_year("2013 frozen", ios_base::goodbit, 113); } -// DevDiv#990695 ": time_get should ignore ios_base::iostate's initial value" +// DevDiv-990695 ": time_get should ignore ios_base::iostate's initial value" void test_990695() { for (int k = 0; k < 2; ++k) { const auto Bit = k == 0 ? ios_base::goodbit : ios_base::failbit; diff --git a/tests/std/tests/Dev11_0845312_comprehensive_floating_point/test.cpp b/tests/std/tests/Dev11_0845312_comprehensive_floating_point/test.cpp index 28c4a31b82c..ee421c1135e 100644 --- a/tests/std/tests/Dev11_0845312_comprehensive_floating_point/test.cpp +++ b/tests/std/tests/Dev11_0845312_comprehensive_floating_point/test.cpp @@ -3,7 +3,7 @@ // Derived from: qa/VC/LibsWin/devcrt/tests/C/Dev14_845312_accurate_fp_parsing -// Basic regression test for DevDiv2 #845312: Floating point conversion accuracy +// Basic regression test for DevDiv-845312: Floating point conversion accuracy // improvements. This test verifies scanf-printf round-tripping of a set of // diverse floating point values (both single and double precision). diff --git a/tests/std/tests/Dev11_0863628_atomic_compare_exchange/test.cpp b/tests/std/tests/Dev11_0863628_atomic_compare_exchange/test.cpp index ceca79baf66..6e9a163345d 100644 --- a/tests/std/tests/Dev11_0863628_atomic_compare_exchange/test.cpp +++ b/tests/std/tests/Dev11_0863628_atomic_compare_exchange/test.cpp @@ -83,11 +83,11 @@ void test_nullptr_compares() { } // Also test: -// DevDiv#826403 ": passing volatile atomic to store won't compile [libs-conformance]" -// DevDiv#829873 ": Error when using atomic pointer to const" -// DevDiv#846428 ": std::atomic::store with volatile specifier does not work for non-integral type" -// DevDiv#879700 ": atomic constructor missing cast?" -// DevDiv#1181758 ": MSVC 2015 std::atomic is implemented using non-conforming C++" +// DevDiv-826403 ": passing volatile atomic to store won't compile [libs-conformance]" +// DevDiv-829873 ": Error when using atomic pointer to const" +// DevDiv-846428 ": std::atomic::store with volatile specifier does not work for non-integral type" +// DevDiv-879700 ": atomic constructor missing cast?" +// DevDiv-1181758 ": MSVC 2015 std::atomic is implemented using non-conforming C++" // This is compile-only. template diff --git a/tests/std/tests/Dev11_0920385_list_sort_allocator/test.cpp b/tests/std/tests/Dev11_0920385_list_sort_allocator/test.cpp index bc329164081..aa38f7b4c6a 100644 --- a/tests/std/tests/Dev11_0920385_list_sort_allocator/test.cpp +++ b/tests/std/tests/Dev11_0920385_list_sort_allocator/test.cpp @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// Test DevDiv#920385 ": list::sort shouldn't default-construct allocators". +// Test DevDiv-920385 ": list::sort shouldn't default-construct allocators". #define _SILENCE_CXX17_OLD_ALLOCATOR_MEMBERS_DEPRECATION_WARNING @@ -284,7 +284,7 @@ int main() { test_allocator_construct_const(); } -// Also test DevDiv#1119194 "The STL should handle allocators that aren't assignable". +// Also test DevDiv-1119194 "The STL should handle allocators that aren't assignable". template struct NoProp { @@ -353,7 +353,7 @@ void test_1119194() { test_swap_copy_move, AC>>(); } -// Test DevDiv#1184701 ": We should handle construct/destroy returning non-void". +// Test DevDiv-1184701 ": We should handle construct/destroy returning non-void". template struct NonVoid { diff --git a/tests/std/tests/Dev11_1086953_call_once_overhaul/test.cpp b/tests/std/tests/Dev11_1086953_call_once_overhaul/test.cpp index 6d2b9ad43f7..27338bff59b 100644 --- a/tests/std/tests/Dev11_1086953_call_once_overhaul/test.cpp +++ b/tests/std/tests/Dev11_1086953_call_once_overhaul/test.cpp @@ -111,7 +111,7 @@ void run_tests() { VERIFY(i2 == 5); } - // Test DevDiv#1086953 "Throwing exception from std::call_once does not allow other threads to enter". + // Test DevDiv-1086953 "Throwing exception from std::call_once does not allow other threads to enter". // EH, single-threaded. { once_flag flag; @@ -149,7 +149,7 @@ void run_tests() { } } - // Test DevDiv#1086953 "Throwing exception from std::call_once does not allow other threads to enter". + // Test DevDiv-1086953 "Throwing exception from std::call_once does not allow other threads to enter". // EH, multi-threaded. { long ready = 0; @@ -188,7 +188,7 @@ void run_tests() { VERIFY(i == 3); } - // Test DevDiv#1092852 "concurrent std::call_once calls seem to be blocking somewhere on a shared variable". + // Test DevDiv-1092852 "concurrent std::call_once calls seem to be blocking somewhere on a shared variable". // Also test stateful callable objects. { long atom = 0; diff --git a/tests/std/tests/Dev11_1114006_condition_variable_pred/test.cpp b/tests/std/tests/Dev11_1114006_condition_variable_pred/test.cpp index 52e12cb279c..0af65eccf50 100644 --- a/tests/std/tests/Dev11_1114006_condition_variable_pred/test.cpp +++ b/tests/std/tests/Dev11_1114006_condition_variable_pred/test.cpp @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// Test DevDiv#1114006 "[+ VS2015] conditional_variable with predicate does not behave according to the standard". +// Test DevDiv-1114006 "[+ VS2015] conditional_variable with predicate does not behave according to the standard". #include #include diff --git a/tests/std/tests/Dev11_1131212_uncaught_exceptions/test.cpp b/tests/std/tests/Dev11_1131212_uncaught_exceptions/test.cpp index 6cbad4be454..1c5ad910d27 100644 --- a/tests/std/tests/Dev11_1131212_uncaught_exceptions/test.cpp +++ b/tests/std/tests/Dev11_1131212_uncaught_exceptions/test.cpp @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// DevDiv2 #1131212: std::uncaught_exceptions is not implemented +// DevDiv-1131212: std::uncaught_exceptions is not implemented // // This test validates the implementation of std::uncaught_exceptions by recursively // throwing exceptions from a destructor. diff --git a/tests/std/tests/P0024R2_parallel_algorithms_is_partitioned/test.cpp b/tests/std/tests/P0024R2_parallel_algorithms_is_partitioned/test.cpp index 505091ef94f..3b8980d7bc4 100644 --- a/tests/std/tests/P0024R2_parallel_algorithms_is_partitioned/test.cpp +++ b/tests/std/tests/P0024R2_parallel_algorithms_is_partitioned/test.cpp @@ -77,7 +77,7 @@ void test_case_is_partitioned_parallel(const size_t testSize) { // testing with 2 partition points (T F T ... T F T ... T), where the F at index 1 is fixed and the second F is // tried at each index - first = std::next(c.begin()); + first = next(c.begin()); *first = false; while (++first != c.end()) { *first = false; @@ -90,7 +90,7 @@ void test_case_is_partitioned_parallel(const size_t testSize) { // testing with 2 partition adjacent points (T...T F T F...F) where the adjacent partition points are tried at each // index first = c.begin(); - auto second = std::next(first, 2); + auto second = next(first, 2); for (; second != c.end(); ++first, ++second) { *first = true; *second = true; diff --git a/tests/std/tests/P0024R2_parallel_algorithms_transform_exclusive_scan/test.cpp b/tests/std/tests/P0024R2_parallel_algorithms_transform_exclusive_scan/test.cpp index 31f56c01338..256f6136494 100644 --- a/tests/std/tests/P0024R2_parallel_algorithms_transform_exclusive_scan/test.cpp +++ b/tests/std/tests/P0024R2_parallel_algorithms_transform_exclusive_scan/test.cpp @@ -38,7 +38,7 @@ vector prepare_alpha_strings(const size_t testSize) { } const auto maxAlphaStrings = prepare_alpha_strings(max_parallel_test_case_n); -const auto removeOne = [](std::string str) { +const auto removeOne = [](string str) { str.pop_back(); return str; }; diff --git a/tests/std/tests/P0024R2_parallel_algorithms_transform_inclusive_scan/test.cpp b/tests/std/tests/P0024R2_parallel_algorithms_transform_inclusive_scan/test.cpp index c2086af481d..f048f2e236c 100644 --- a/tests/std/tests/P0024R2_parallel_algorithms_transform_inclusive_scan/test.cpp +++ b/tests/std/tests/P0024R2_parallel_algorithms_transform_inclusive_scan/test.cpp @@ -38,7 +38,7 @@ vector prepare_alpha_question_strings(const size_t testSize) { } const auto maxAlphaStrings = prepare_alpha_question_strings(max_parallel_test_case_n); -const auto removeOne = [](std::string str) { +const auto removeOne = [](string str) { str.pop_back(); return str; }; diff --git a/tests/std/tests/P0092R1_polishing_chrono/test.cpp b/tests/std/tests/P0092R1_polishing_chrono/test.cpp index 7935e6bce3b..25c99b32260 100644 --- a/tests/std/tests/P0092R1_polishing_chrono/test.cpp +++ b/tests/std/tests/P0092R1_polishing_chrono/test.cpp @@ -202,13 +202,13 @@ int overloaded(duration) { } int main() { - // DevDiv#453376 "std::chrono::duration_cast lacks double support" + // DevDiv-453376 "std::chrono::duration_cast lacks double support" duration d(17.29); assert(duration_cast>(d).count() == 17); - // DevDiv#742944 "non conforming return value for std::chrono::duration::operator%()" + // DevDiv-742944 "non conforming return value for std::chrono::duration::operator%()" assert((milliseconds(1050) % seconds(1)).count() == 50); assert((milliseconds(1729) / 10).count() == 172); @@ -217,7 +217,7 @@ int main() { assert((minutes(4) % milliseconds(1729)).count() == 1398); - // DevDiv#1134356 "[STL]Test failed with std::chrono::milliseconds" + // DevDiv-1134356 "[STL]Test failed with std::chrono::milliseconds" // LWG-2094 "duration conversion overflow shouldn't participate in overload resolution" assert(overloaded(40ms) == 11); assert(overloaded(50s) == 22); diff --git a/tests/std/tests/P0220R1_string_view/test.cpp b/tests/std/tests/P0220R1_string_view/test.cpp index bb81bb98d01..1d0fd5abba2 100644 --- a/tests/std/tests/P0220R1_string_view/test.cpp +++ b/tests/std/tests/P0220R1_string_view/test.cpp @@ -936,16 +936,16 @@ constexpr bool test_case_operators() { } void test_case_inserter() { - std::ostringstream oss; + ostringstream oss; string_view sv("text"); oss << sv; assert(oss.str() == "text"); } void test_case_hashing() { - std::string str("hungry EVIL zombies"); - std::string_view strView(str); - assert(std::hash{}(str) == std::hash{}(strView)); + string str("hungry EVIL zombies"); + string_view strView(str); + assert(hash{}(str) == hash{}(strView)); } void test_case_string_integration() { diff --git a/tests/std/tests/VSO_0000000_initialize_everything/test.cpp b/tests/std/tests/VSO_0000000_initialize_everything/test.cpp index be0d0492039..eae22a45365 100644 --- a/tests/std/tests/VSO_0000000_initialize_everything/test.cpp +++ b/tests/std/tests/VSO_0000000_initialize_everything/test.cpp @@ -307,7 +307,7 @@ void test_case_VSO_802346_unordered_set() { TestType source; source.construct(size_t{}, stateful_allocator(1234)); const auto oldBuckets = source.get().bucket_count(); - assert(oldBuckets == std::unordered_set().bucket_count()); + assert(oldBuckets == unordered_set().bucket_count()); TestType target; target.construct(move(source.get()), stateful_allocator(42)); assert(target.get().bucket_count() == oldBuckets); diff --git a/tests/std/tests/VSO_0000000_nullptr_stream_out/test.cpp b/tests/std/tests/VSO_0000000_nullptr_stream_out/test.cpp index 7d2d1a80b0b..fcb39728845 100644 --- a/tests/std/tests/VSO_0000000_nullptr_stream_out/test.cpp +++ b/tests/std/tests/VSO_0000000_nullptr_stream_out/test.cpp @@ -19,8 +19,8 @@ int main() { #endif // _HAS_CXX17 // LWG-1203 "More useful rvalue stream insertion" - assert((std::ostringstream{} << 42).str() == "42"); + assert((ostringstream{} << 42).str() == "42"); int x; - assert((std::istringstream("42 1729") >> x).str() == "42 1729"); + assert((istringstream("42 1729") >> x).str() == "42 1729"); assert(x == 42); } diff --git a/tests/std/tests/VSO_0000000_regex_interface/test.cpp b/tests/std/tests/VSO_0000000_regex_interface/test.cpp index e9ec4961005..27f2468e298 100644 --- a/tests/std/tests/VSO_0000000_regex_interface/test.cpp +++ b/tests/std/tests/VSO_0000000_regex_interface/test.cpp @@ -44,7 +44,7 @@ void test_devdiv_165070_regex_should_accept_wchar_t() { } void test_devdiv_822474_match_results_should_be_ready_after_regex_search() { - // DevDiv#822474 ": match_results::ready() returns false after regex_search called [libs-conformance]" + // DevDiv-822474 ": match_results::ready() returns false after regex_search called [libs-conformance]" // N3797 28.10.1 [re.results.const]/3: // match_results(const Allocator& a = Allocator()); diff --git a/tests/std/tests/VSO_0000000_regex_use/test.cpp b/tests/std/tests/VSO_0000000_regex_use/test.cpp index caa2afe2be0..29e993dc431 100644 --- a/tests/std/tests/VSO_0000000_regex_use/test.cpp +++ b/tests/std/tests/VSO_0000000_regex_use/test.cpp @@ -107,7 +107,7 @@ void test_dev10_505773_regex_should_accept_empty_alternations() { } void test_dev11_821930_literal_dollar_replacement_characters() { - // Also test DevDiv#821930 ": match_results formatting: _Format_default increment error [libs-conformance]" + // Also test DevDiv-821930 ": match_results formatting: _Format_default increment error [libs-conformance]" // N3797 28.5.2 [re.matchflag]: // Element: format_default diff --git a/tests/std/tests/VSO_0000000_type_traits/test.cpp b/tests/std/tests/VSO_0000000_type_traits/test.cpp index 269709584d6..da226deb65b 100644 --- a/tests/std/tests/VSO_0000000_type_traits/test.cpp +++ b/tests/std/tests/VSO_0000000_type_traits/test.cpp @@ -21,8 +21,8 @@ using namespace std; STATIC_ASSERT(is_same_v) // Regression test for: -// DevDiv2 #387795: is_pod should be false -// DevDiv2 #424157: is_assignable/is_trivially_assignable/is_trivially_move_assignable for void +// DevDiv-387795: is_pod should be false +// DevDiv-424157: is_assignable/is_trivially_assignable/is_trivially_move_assignable for void // N3376 20.9.4.1[meta.unary.cat]: primary type categories: STATIC_ASSERT(is_void_v); @@ -363,7 +363,7 @@ STATIC_ASSERT(!is_convertible_v); STATIC_ASSERT(!is_convertible_v); STATIC_ASSERT(!is_convertible_v); -// Verify simplifications after DevDiv#1195735 "C1XX should select IsConst for IsConst" was +// Verify simplifications after DevDiv-1195735 "C1XX should select IsConst for IsConst" was // fixed. STATIC_ASSERT(!is_const_v); STATIC_ASSERT(!is_const_v); @@ -550,7 +550,7 @@ STATIC_ASSERT(is_base_of_v, negation> // -// DDB#198043 "[VS2008 / TR1] problems with is_pod and has_trivial_constructor" +// DDB-198043 "[VS2008 / TR1] problems with is_pod and has_trivial_constructor" struct TrivialExceptConstruct { TrivialExceptConstruct(); int i; diff --git a/tests/std/tests/VSO_0104705_throwing_copy_in_current_exception/test.cpp b/tests/std/tests/VSO_0104705_throwing_copy_in_current_exception/test.cpp index 7a1fd198d79..3b2b36556e2 100644 --- a/tests/std/tests/VSO_0104705_throwing_copy_in_current_exception/test.cpp +++ b/tests/std/tests/VSO_0104705_throwing_copy_in_current_exception/test.cpp @@ -72,7 +72,7 @@ int main() { assert(BasicLifetimeTracker::allAlive == 0); { - std::exception_ptr ptr; + exception_ptr ptr; try { throw EvilException<0>(); // copy 1 } catch (...) { diff --git a/tests/std/tests/VSO_0121440_is_iterator_iterator_traits/test.cpp b/tests/std/tests/VSO_0121440_is_iterator_iterator_traits/test.cpp index a1ae5140266..6a8882fa0a7 100644 --- a/tests/std/tests/VSO_0121440_is_iterator_iterator_traits/test.cpp +++ b/tests/std/tests/VSO_0121440_is_iterator_iterator_traits/test.cpp @@ -78,7 +78,7 @@ int main() { vector vec(begin_arr, end_arr); } -// DevDiv#557214 "std::forward_iterator_tag derives from std::output_iterator_tag" +// DevDiv-557214 "std::forward_iterator_tag derives from std::output_iterator_tag" STATIC_ASSERT(is_base_of_v); STATIC_ASSERT(is_base_of_v); STATIC_ASSERT(is_base_of_v); diff --git a/tests/std/tests/VSO_0397980_codecvt_length/test.cpp b/tests/std/tests/VSO_0397980_codecvt_length/test.cpp index fb69d2f475d..f18b6197ac2 100644 --- a/tests/std/tests/VSO_0397980_codecvt_length/test.cpp +++ b/tests/std/tests/VSO_0397980_codecvt_length/test.cpp @@ -19,7 +19,7 @@ using namespace std; // Also validate deleted stream inserters for char8_t and pointer-to-char8_t, speculatively implemented from P1423R1. #ifdef __cpp_char8_t template -constexpr auto f(int) -> decltype(std::declval() << std::declval(), true) { +constexpr auto f(int) -> decltype(declval() << declval(), true) { return true; } template diff --git a/tests/tr1/tests/atomic1/test.cpp b/tests/tr1/tests/atomic1/test.cpp index d523771831c..f6795dccc29 100644 --- a/tests/tr1/tests/atomic1/test.cpp +++ b/tests/tr1/tests/atomic1/test.cpp @@ -278,10 +278,10 @@ struct arithmetic_tester { // class for testing atomicity of arithmetic operatio inc_dec(3); } static void do_it2() { // increment/decrement by max() - 5 - inc_dec(std::numeric_limits::max() - 5); + inc_dec(STD numeric_limits::max() - 5); } static void do_it3() { // increment/decrement by max() - 7 - inc_dec(std::numeric_limits::max() - 7); + inc_dec(STD numeric_limits::max() - 7); } static void inc_dec(Ty value) { // increment/decrement by value unsigned long limit = iterations; diff --git a/tests/tr1/tests/functional6/test.cpp b/tests/tr1/tests/functional6/test.cpp index d2392998036..bcfab12bba8 100644 --- a/tests/tr1/tests/functional6/test.cpp +++ b/tests/tr1/tests/functional6/test.cpp @@ -32,7 +32,7 @@ static void t_bad() { // test bad_function_call try { // test exception for empty function object Myfunc fd1; - std::cout << fd1(3) << std::endl; + STD cout << fd1(3) << STD endl; } catch (const STD bad_function_call&) { // handle bad call ok = true; } diff --git a/tests/tr1/tests/future/test.cpp b/tests/tr1/tests/future/test.cpp index d33900876a5..08a0f3fb5d5 100644 --- a/tests/tr1/tests/future/test.cpp +++ b/tests/tr1/tests/future/test.cpp @@ -55,15 +55,15 @@ static STD error_code rtr(STD future_errc::future_already_retrieved); static STD error_code sat(STD future_errc::promise_already_satisfied); static STD error_code nst(STD future_errc::no_state); -static bool check_future_errc(std::future_errc) { // bind to future_errc values +static bool check_future_errc(STD future_errc) { // bind to future_errc values return 1; } -static bool check_launch(std::launch) { // bind to launch values +static bool check_launch(STD launch) { // bind to launch values return 1; } -static bool check_future_status(std::future_status) { // bind to future_status values +static bool check_future_status(STD future_status) { // bind to future_status values return 1; } diff --git a/tests/tr1/tests/memory1/test.cpp b/tests/tr1/tests/memory1/test.cpp index 11ed2e10f52..c27161919eb 100644 --- a/tests/tr1/tests/memory1/test.cpp +++ b/tests/tr1/tests/memory1/test.cpp @@ -288,7 +288,7 @@ static void t_shared_ptr() { // test shared_ptr interface { // shared_ptr = shared_ptr(_V*, _D, _A) deleter::called = 0; X2* it = new X2; - STD shared_ptr sp0(it, deleter(), std::allocator()); + STD shared_ptr sp0(it, deleter(), STD allocator()); STD shared_ptr sp1; sp1 = sp0; CHECK_INT(sp0.use_count(), 2); @@ -304,7 +304,7 @@ static void t_shared_ptr() { // test shared_ptr interface { // shared_ptr = shared_ptr(const _SP&, _T*) deleter::called = 0; X2* it = new X2; - STD shared_ptr sp0(it, deleter(), std::allocator()); + STD shared_ptr sp0(it, deleter(), STD allocator()); int x = 3; STD shared_ptr sp1(sp0, &x); CHECK_INT(sp0.use_count(), 2); @@ -488,7 +488,7 @@ static void t_shared_ptr() { // test shared_ptr interface X0* it0 = new X0; X2* it1 = new X2; STD shared_ptr sp0(it0); - sp0.reset(it1, deleter(), std::allocator()); + sp0.reset(it1, deleter(), STD allocator()); CHECK_INT(sp0.use_count(), 1); CHECK_PTR(sp0.get(), it1); CHECK(STD get_deleter(sp0) != nullptr); diff --git a/tests/tr1/tests/random5/test.cpp b/tests/tr1/tests/random5/test.cpp index 3902c56f301..00564ec8ed7 100644 --- a/tests/tr1/tests/random5/test.cpp +++ b/tests/tr1/tests/random5/test.cpp @@ -424,7 +424,7 @@ static void tdiscrete() { CHECK_DOUBLE(dist0.probabilities()[0], 1.0); dist0.reset(); - std::vector vec(4, 1.0); + STD vector vec(4, 1.0); dist_t dist1(STD initializer_list(vec.data(), vec.data() + vec.size())); @@ -465,13 +465,13 @@ static void tpiecewise_constant() { CHECK_DOUBLE(dist0.probabilities()[0], 1.0); dist0.reset(); - std::vector ends; + STD vector ends; ends.push_back(0.0); ends.push_back(1.0); ends.push_back(2.0); ends.push_back(3.0); ends.push_back(4.0); - std::vector vec(4, 1.0); + STD vector vec(4, 1.0); dist_t dist1(ends.begin(), ends.end(), vec.begin()); CHECK_INT(dist1.densities().size(), 4); CHECK_DOUBLE(dist1.densities()[0], 0.25); @@ -524,13 +524,13 @@ static void tpiecewise_linear() { CHECK_DOUBLE(dist0.probabilities()[0], 1.0); dist0.reset(); - std::vector ends; + STD vector ends; ends.push_back(0.0); ends.push_back(1.0); ends.push_back(2.0); ends.push_back(3.0); ends.push_back(4.0); - std::vector vec(5, 1.0); + STD vector vec(5, 1.0); dist_t dist1(ends.begin(), ends.end(), vec.begin()); CHECK_INT(dist1.densities().size(), 5); CHECK_INT(dist1.intervals().size(), 5);