mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-26 20:30:06 +01:00
Apply clang-tidy
This commit is contained in:
@@ -139,8 +139,8 @@ template <typename Variant, typename Char> class is_variant_formattable {
|
|||||||
#endif // FMT_CPP_LIB_VARIANT
|
#endif // FMT_CPP_LIB_VARIANT
|
||||||
|
|
||||||
#if FMT_USE_RTTI
|
#if FMT_USE_RTTI
|
||||||
inline string_view normalize_libcxx_inline_namespaces(
|
inline auto normalize_libcxx_inline_namespaces(string_view demangled_name_view,
|
||||||
string_view demangled_name_view, char* begin) {
|
char* begin) -> string_view {
|
||||||
// Normalization of stdlib inline namespace names.
|
// Normalization of stdlib inline namespace names.
|
||||||
// libc++ inline namespaces.
|
// libc++ inline namespaces.
|
||||||
// std::__1::* -> std::*
|
// std::__1::* -> std::*
|
||||||
@@ -211,7 +211,7 @@ auto write_demangled_name(OutputIt out, const std::type_info& ti) -> OutputIt {
|
|||||||
# elif FMT_MSC_VERSION && defined(_MSVC_STL_UPDATE)
|
# elif FMT_MSC_VERSION && defined(_MSVC_STL_UPDATE)
|
||||||
return normalize_msvc_abi_name(ti.name(), out);
|
return normalize_msvc_abi_name(ti.name(), out);
|
||||||
# elif FMT_MSC_VERSION && defined(_LIBCPP_VERSION)
|
# elif FMT_MSC_VERSION && defined(_LIBCPP_VERSION)
|
||||||
const string_view demangled_name(ti.name());
|
const string_view demangled_name = ti.name();
|
||||||
std::string name_copy(demangled_name.size(), '\0');
|
std::string name_copy(demangled_name.size(), '\0');
|
||||||
// normalize_msvc_abi_name removes class, struct, union etc that MSVC has in
|
// normalize_msvc_abi_name removes class, struct, union etc that MSVC has in
|
||||||
// front of types
|
// front of types
|
||||||
|
|||||||
Reference in New Issue
Block a user