mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-16 14:09:02 +07:00
move clang-tidy configs to .clangd file
This commit is contained in:
7
develop/.clangd
Normal file
7
develop/.clangd
Normal file
@@ -0,0 +1,7 @@
|
||||
Diagnostics:
|
||||
ClangTidy:
|
||||
Remove:
|
||||
- cppcoreguidelines-*
|
||||
- modernize-*
|
||||
- performance-*
|
||||
- readability-*
|
||||
@@ -1,18 +0,0 @@
|
||||
---
|
||||
Checks: '-*,
|
||||
|
||||
bugprone-*,
|
||||
-bugprone-easily-swappable-parameters,
|
||||
|
||||
clang-analyzer-*,
|
||||
|
||||
concurrency-*,
|
||||
|
||||
modernize-*,
|
||||
-modernize-avoid-c-arrays,
|
||||
-modernize-use-nodiscard,
|
||||
-modernize-use-trailing-return-type,
|
||||
|
||||
portability-*,
|
||||
'
|
||||
...
|
||||
@@ -419,7 +419,7 @@ namespace meta_hpp::detail
|
||||
assert(!dst); // NOLINT
|
||||
|
||||
static_assert(sizeof(Fp) <= sizeof(buffer_t));
|
||||
static_assert(alignof(Fp) <= alignof(buffer_t));
|
||||
static_assert(alignof(buffer_t) % alignof(Fp) == 0);
|
||||
static_assert(std::is_invocable_r_v<R, Fp, Args...>);
|
||||
static_assert(std::is_nothrow_move_constructible_v<Fp>);
|
||||
|
||||
@@ -8164,8 +8164,8 @@ namespace meta_hpp
|
||||
assert(!dst); // NOLINT
|
||||
|
||||
constexpr bool in_buffer =
|
||||
sizeof(Tp) <= sizeof(buffer_t) &&
|
||||
alignof(Tp) <= alignof(buffer_t) &&
|
||||
(sizeof(Tp) <= sizeof(buffer_t)) &&
|
||||
(alignof(buffer_t) % alignof(Tp) == 0) &&
|
||||
std::is_nothrow_move_constructible_v<Tp>;
|
||||
|
||||
if constexpr ( in_buffer ) {
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
---
|
||||
Checks: '-*,
|
||||
|
||||
bugprone-*,
|
||||
-bugprone-easily-swappable-parameters,
|
||||
|
||||
clang-analyzer-*,
|
||||
|
||||
concurrency-*,
|
||||
|
||||
modernize-*,
|
||||
-modernize-avoid-c-arrays,
|
||||
-modernize-use-nodiscard,
|
||||
-modernize-use-trailing-return-type,
|
||||
|
||||
portability-*,
|
||||
'
|
||||
...
|
||||
Reference in New Issue
Block a user