mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-30 12:43:52 +00:00
chore(deps): pre-commit.ci autoupdate (#1072)
<!--pre-commit.ci start--> updates: - [github.com/pre-commit/mirrors-clang-format: v18.1.8 → v19.1.0](https://github.com/pre-commit/mirrors-clang-format/compare/v18.1.8...v19.1.0) <!--pre-commit.ci end--> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
8c6a73d343
commit
924e3e84fc
@ -26,7 +26,7 @@ repos:
|
|||||||
- id: debug-statements
|
- id: debug-statements
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||||
rev: v18.1.8
|
rev: v19.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: clang-format
|
- id: clang-format
|
||||||
types_or: [c++, c, cuda]
|
types_or: [c++, c, cuda]
|
||||||
|
@ -53,15 +53,15 @@
|
|||||||
|
|
||||||
/** detection of rtti */
|
/** detection of rtti */
|
||||||
#ifndef CLI11_USE_STATIC_RTTI
|
#ifndef CLI11_USE_STATIC_RTTI
|
||||||
#if(defined(_HAS_STATIC_RTTI) && _HAS_STATIC_RTTI)
|
#if (defined(_HAS_STATIC_RTTI) && _HAS_STATIC_RTTI)
|
||||||
#define CLI11_USE_STATIC_RTTI 1
|
#define CLI11_USE_STATIC_RTTI 1
|
||||||
#elif defined(__cpp_rtti)
|
#elif defined(__cpp_rtti)
|
||||||
#if(defined(_CPPRTTI) && _CPPRTTI == 0)
|
#if (defined(_CPPRTTI) && _CPPRTTI == 0)
|
||||||
#define CLI11_USE_STATIC_RTTI 1
|
#define CLI11_USE_STATIC_RTTI 1
|
||||||
#else
|
#else
|
||||||
#define CLI11_USE_STATIC_RTTI 0
|
#define CLI11_USE_STATIC_RTTI 0
|
||||||
#endif
|
#endif
|
||||||
#elif(defined(__GCC_RTTI) && __GXX_RTTI)
|
#elif (defined(__GCC_RTTI) && __GXX_RTTI)
|
||||||
#define CLI11_USE_STATIC_RTTI 0
|
#define CLI11_USE_STATIC_RTTI 0
|
||||||
#else
|
#else
|
||||||
#define CLI11_USE_STATIC_RTTI 1
|
#define CLI11_USE_STATIC_RTTI 1
|
||||||
|
@ -185,7 +185,7 @@ template <typename T, typename C> class is_direct_constructible {
|
|||||||
#pragma diag_suppress 2361
|
#pragma diag_suppress 2361
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
TT{std::declval<CC>()}
|
TT{std::declval<CC>()}
|
||||||
#ifdef __CUDACC__
|
#ifdef __CUDACC__
|
||||||
#ifdef __NVCC_DIAG_PRAGMA_SUPPORT__
|
#ifdef __NVCC_DIAG_PRAGMA_SUPPORT__
|
||||||
#pragma nv_diag_default 2361
|
#pragma nv_diag_default 2361
|
||||||
@ -193,8 +193,8 @@ template <typename T, typename C> class is_direct_constructible {
|
|||||||
#pragma diag_default 2361
|
#pragma diag_default 2361
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
,
|
,
|
||||||
std::is_move_assignable<TT>());
|
std::is_move_assignable<TT>());
|
||||||
|
|
||||||
template <typename TT, typename CC> static auto test(int, std::false_type) -> std::false_type;
|
template <typename TT, typename CC> static auto test(int, std::false_type) -> std::false_type;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user