-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various cleanups #3177
Various cleanups #3177
Conversation
…ompat in stl/src. They're marked as _CRTIMP2_PURE in stl/src, so they'll continue to be exported.
Also, avoid calling a function before it's been declared (unintentional ADL and an unnecessary function call).
Co-authored-by: Casey Carter <[email protected]>
Fixes: ``` CMake Warning: Manually-specified variables were not used by the project: LIT_FLAGS STL_USE_ANALYZE ```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For posterity: I validated there are no other occurrences of LLVM-46269
in the STL after applying this change.
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
I've pushed an additional commit to restore C4702 silencing for the internal chpe build. |
These non-overlapping changes are structured as a series of fine-grained commits for easy reviewing but are collected into a single PR to reduce the load on the CI system.
<xlocinfo>
,<xlocnum>
: The_Stof
and_Stofx
families are unused, so we can remove their declarations fromstl/inc
.xstof.cpp
,xstod.cpp
,xstold.cpp
: We can comment their definitions as preserved for bincompat instl/src
.xwstof.cpp
,xwstod.cpp
,xwstold.cpp
: Also comment the wide definitions, which didn't have declarations._CRTIMP2_PURE
, so they'll continue to be exported.<xlocinfo>
:_GetLocaleForCP
was declared but never defined, so we can drop this extremely complicated declaration.<string>
: Qualify_STD getline()
._STD move(_Istr)
fixes this, and makes all of these overloads call the actual implementation above.special_math.cpp
: Now that we've merged updateboost-math
and fixstd::ellint_2
#3077 to always use the standaloneboost-math
submodule, we can simplify this:BOOST_CHRONO_HEADER_ONLY
andBOOST_CONFIG_SUPPRESS_OUTDATED_MESSAGE
.bessel.hpp
andgamma.hpp
emit MSVC/analyze
warning C6326: Potential comparison of a constant with another constant. boostorg/math#853. We also need to suppress C4702 for the MSVC-internal build's chpe architecture.P0896R4_ranges_alg_is_permutation/test.cpp
: Nitpick, we conventionally avoid defining a struct and a variable simultaneously. DefineNonCopyableBool
andb
separately.payload_destructor
, also removing an unnecessary semicolon.azure-devops/cmake-configure-build.yml
: Followup to Update google-benchmark to 1.7.0 #3151, drop unused variables when configuring the benchmarks. This fixes a warning message printed by Azure Pipelines: