Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 296e840

Browse files
Various cleanups (microsoft#3177)
Co-authored-by: Casey Carter <[email protected]>
1 parent 82837b7 commit 296e840

File tree

18 files changed

+29
-58
lines changed

18 files changed

+29
-58
lines changed

azure-devops/cmake-configure-build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ steps:
5757
cmake ${{ parameters.cmakeAdditionalFlags}} -G Ninja ^
5858
-DCMAKE_CXX_COMPILER=cl ^
5959
-DCMAKE_BUILD_TYPE=Release ^
60-
-DLIT_FLAGS=$(litFlags) ^
61-
-DSTL_USE_ANALYZE=ON ^
6260
-DSTL_BINARY_DIR=$(${{ parameters.buildOutputLocationVar }}) ^
6361
-S $(Build.SourcesDirectory)/benchmarks -B $(${{ parameters.benchmarkBuildOutputLocationVar }})
6462
displayName: 'Configure the benchmarks'

stl/inc/expected

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ public:
321321
}
322322

323323
// clang-format off
324-
// TRANSITION, LLVM-46269, destructor order is significant
325324
~expected() requires is_trivially_destructible_v<_Ty> && is_trivially_destructible_v<_Err> = default;
326325
// clang-format on
327326

@@ -842,7 +841,6 @@ public:
842841
}
843842

844843
// clang-format off
845-
// TRANSITION, LLVM-46269, destructor order is significant
846844
~expected() requires is_trivially_destructible_v<_Err> = default;
847845
// clang-format on
848846

stl/inc/iterator

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,6 @@ public:
639639
_Raw_clear();
640640
}
641641

642-
// TRANSITION, LLVM-46269, destructor order is significant
643642
// clang-format off
644643
constexpr ~_Variantish() requires is_trivially_destructible_v<_Ty1> && is_trivially_destructible_v<_Ty2> = default;
645644

stl/inc/ranges

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ namespace ranges {
265265
}
266266
}
267267

268-
// TRANSITION, LLVM-46269, destructor order is significant
269268
// clang-format off
270269
~_Movable_box() requires is_trivially_destructible_v<_Ty> = default;
271270

@@ -483,7 +482,6 @@ namespace ranges {
483482
}
484483
}
485484

486-
// TRANSITION, LLVM-46269, destructor order is significant
487485
// clang-format off
488486
~_Defaultabox() requires is_trivially_destructible_v<_Ty> = default;
489487

@@ -701,7 +699,6 @@ namespace ranges {
701699
}
702700
}
703701

704-
// TRANSITION, LLVM-46269, destructor order is significant
705702
// clang-format off
706703
~_Non_propagating_cache() requires is_trivially_destructible_v<_Ty> = default;
707704
// clang-format on

stl/inc/string

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,21 +69,21 @@ _EXPORT_STD template <class _Elem, class _Traits, class _Alloc>
6969
basic_istream<_Elem, _Traits>& getline(
7070
basic_istream<_Elem, _Traits>&& _Istr, basic_string<_Elem, _Traits, _Alloc>& _Str) {
7171
// get characters into string, discard newline
72-
return getline(_Istr, _Str, _Istr.widen('\n'));
72+
return _STD getline(_STD move(_Istr), _Str, _Istr.widen('\n'));
7373
}
7474

7575
_EXPORT_STD template <class _Elem, class _Traits, class _Alloc>
7676
basic_istream<_Elem, _Traits>& getline(
7777
basic_istream<_Elem, _Traits>& _Istr, basic_string<_Elem, _Traits, _Alloc>& _Str, const _Elem _Delim) {
7878
// get characters into string, discard delimiter
79-
return getline(_STD move(_Istr), _Str, _Delim);
79+
return _STD getline(_STD move(_Istr), _Str, _Delim);
8080
}
8181

8282
_EXPORT_STD template <class _Elem, class _Traits, class _Alloc>
8383
basic_istream<_Elem, _Traits>& getline(
8484
basic_istream<_Elem, _Traits>& _Istr, basic_string<_Elem, _Traits, _Alloc>& _Str) {
8585
// get characters into string, discard newline
86-
return getline(_STD move(_Istr), _Str, _Istr.widen('\n'));
86+
return _STD getline(_STD move(_Istr), _Str, _Istr.widen('\n'));
8787
}
8888

8989
_EXPORT_STD _NODISCARD inline int stoi(const string& _Str, size_t* _Idx = nullptr, int _Base = 10) {

stl/inc/xlocinfo

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ _MRTIMP2 _Success_(return >= 0) int __cdecl _Mbrtowc(
6060
_When_(_Max_multibyte != 0, _Out_) wchar_t*, const char*, size_t _Max_multibyte, mbstate_t*, const _Cvtvec*);
6161
#endif // _M_CEE_PURE
6262

63-
_CRTIMP2_PURE float __CLRCALL_PURE_OR_CDECL _Stof(const char*, _Out_opt_ _Deref_post_opt_valid_ char**, long);
64-
_CRTIMP2_PURE double __CLRCALL_PURE_OR_CDECL _Stod(const char*, _Out_opt_ _Deref_post_opt_valid_ char**, long);
65-
_CRTIMP2_PURE long double __CLRCALL_PURE_OR_CDECL _Stold(const char*, _Out_opt_ _Deref_post_opt_valid_ char**, long);
66-
6763
_CRTIMP2_PURE int __CLRCALL_PURE_OR_CDECL _Strcoll(const char*, const char*, const char*, const char*, const _Collvec*);
6864
_CRTIMP2_PURE size_t __CLRCALL_PURE_OR_CDECL _Strxfrm(_Out_writes_(_End1 - _String1)
6965
_Post_readable_size_(return) char* _String1,
@@ -106,14 +102,6 @@ _Success_(return > 0) _ACRTIMP size_t __cdecl _Wcsftime(
106102
_Out_writes_z_(_Maxsize) wchar_t*, _In_ size_t _Maxsize, _In_z_ const wchar_t*, _In_ const tm*, _In_opt_ void*);
107103
_END_EXTERN_C
108104

109-
#ifdef _M_CEE_PURE
110-
[System::Runtime::InteropServices::DllImport(_CRT_MSVCP_CURRENT, EntryPoint = "_GetLocaleForCP",
111-
CallingConvention = System::Runtime::InteropServices::CallingConvention::Cdecl)] extern "C" _locale_t
112-
_GetLocaleForCP(unsigned int);
113-
#else // _M_CEE_PURE
114-
_MRTIMP2 _locale_t __cdecl _GetLocaleForCP(unsigned int);
115-
#endif // _M_CEE_PURE
116-
117105
_STD_BEGIN
118106
extern "C++" class _CRTIMP2_PURE_IMPORT _Timevec { // smart pointer to information used by _Strftime
119107
public:

stl/inc/xlocnum

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ _STL_DISABLE_CLANG_WARNINGS
2424

2525
_EXTERN_C_UNLESS_PURE
2626

27-
_CRTIMP2_PURE float __CLRCALL_PURE_OR_CDECL _Stofx(const char*, _Out_opt_ _Deref_post_opt_valid_ char**, long, int*);
28-
_CRTIMP2_PURE double __CLRCALL_PURE_OR_CDECL _Stodx(const char*, _Out_opt_ _Deref_post_opt_valid_ char**, long, int*);
29-
_CRTIMP2_PURE long double __CLRCALL_PURE_OR_CDECL _Stoldx(
30-
const char*, _Out_opt_ _Deref_post_opt_valid_ char**, long, int*);
3127
_CRTIMP2_PURE long __CLRCALL_PURE_OR_CDECL _Stolx(const char*, _Out_opt_ _Deref_post_opt_valid_ char**, int, int*);
3228
_CRTIMP2_PURE unsigned long __CLRCALL_PURE_OR_CDECL _Stoulx(
3329
const char*, _Out_opt_ _Deref_post_opt_valid_ char**, int, int*);

stl/src/special_math.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,9 @@
88
#include <utility>
99

1010
#pragma warning(push)
11-
#pragma warning(disable : 4619) // #pragma warning: there is no warning number '%d'
12-
#pragma warning(disable : 4643) // Forward declaring '%s' in namespace std is not permitted by the C++ Standard
1311
#pragma warning(disable : 4702) // unreachable code
14-
#pragma warning(disable : 5219) // implicit conversion from '%s' to '%s', possible loss of data
1512
#pragma warning(disable : 6326) // potential comparison of a constant with another constant
1613

17-
#define BOOST_CHRONO_HEADER_ONLY
18-
#define BOOST_CONFIG_SUPPRESS_OUTDATED_MESSAGE
1914
#define BOOST_MATH_DOMAIN_ERROR_POLICY errno_on_error
2015
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
2116

stl/src/xstod.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313

1414
_EXTERN_C_UNLESS_PURE
1515

16+
// TRANSITION, ABI: preserved for binary compatibility
1617
_CRTIMP2_PURE FTYPE __CLRCALL_PURE_OR_CDECL _Stodx(const CTYPE* s, CTYPE** endptr, long pten, int* perr)
1718
#include "xxstod.hpp"
1819

20+
// TRANSITION, ABI: preserved for binary compatibility
1921
_CRTIMP2_PURE FTYPE __CLRCALL_PURE_OR_CDECL
2022
_Stod(const CTYPE* s, CTYPE** endptr, long pten) { // convert string, discard error code
2123
return _Stodx(s, endptr, pten, nullptr);

stl/src/xstof.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313

1414
_EXTERN_C_UNLESS_PURE
1515

16+
// TRANSITION, ABI: preserved for binary compatibility
1617
_CRTIMP2_PURE FTYPE __CLRCALL_PURE_OR_CDECL _Stofx(const CTYPE* s, CTYPE** endptr, long pten, int* perr)
1718
#include "xxstod.hpp"
1819

20+
// TRANSITION, ABI: preserved for binary compatibility
1921
_CRTIMP2_PURE FTYPE __CLRCALL_PURE_OR_CDECL
2022
_Stof(const CTYPE* s, CTYPE** endptr, long pten) { // convert string, discard error code
2123
return _Stofx(s, endptr, pten, nullptr);

0 commit comments

Comments
 (0)