mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-16 22:17:02 +07:00
move clang-tidy configs to .clangd file
This commit is contained in:
27
.clang-tidy
27
.clang-tidy
@@ -1,27 +0,0 @@
|
|||||||
---
|
|
||||||
Checks: '-*,
|
|
||||||
|
|
||||||
bugprone-*,
|
|
||||||
-bugprone-easily-swappable-parameters,
|
|
||||||
-bugprone-macro-parentheses,
|
|
||||||
|
|
||||||
clang-analyzer-*,
|
|
||||||
|
|
||||||
concurrency-*,
|
|
||||||
|
|
||||||
cppcoreguidelines-*,
|
|
||||||
-cppcoreguidelines-macro-usage,
|
|
||||||
|
|
||||||
modernize-*,
|
|
||||||
-modernize-use-trailing-return-type,
|
|
||||||
|
|
||||||
performance-*,
|
|
||||||
|
|
||||||
portability-*,
|
|
||||||
|
|
||||||
readability-*,
|
|
||||||
-readability-identifier-length,
|
|
||||||
-readability-named-parameter,
|
|
||||||
-readability-redundant-access-specifiers,
|
|
||||||
'
|
|
||||||
...
|
|
||||||
26
.clangd
26
.clangd
@@ -1,2 +1,26 @@
|
|||||||
|
Diagnostics:
|
||||||
|
ClangTidy:
|
||||||
|
Add:
|
||||||
|
- bugprone-*
|
||||||
|
- clang-analyzer-*
|
||||||
|
- concurrency-*
|
||||||
|
- cppcoreguidelines-*
|
||||||
|
- misc-*
|
||||||
|
- modernize-*
|
||||||
|
- performance-*
|
||||||
|
- portability-*
|
||||||
|
- readability-*
|
||||||
|
Remove:
|
||||||
|
- bugprone-easily-swappable-parameters
|
||||||
|
- bugprone-macro-parentheses
|
||||||
|
- cppcoreguidelines-macro-usage
|
||||||
|
- misc-no-recursion
|
||||||
|
- misc-non-private-member-variables-in-classes
|
||||||
|
- misc-unused-using-decls
|
||||||
|
- modernize-use-trailing-return-type
|
||||||
|
- readability-identifier-length
|
||||||
|
- readability-named-parameter
|
||||||
|
- readability-redundant-access-specifiers
|
||||||
|
|
||||||
CompileFlags:
|
CompileFlags:
|
||||||
CompilationDatabase: ./develop/.cdb
|
CompilationDatabase: ./develop/.cdb
|
||||||
|
|||||||
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@@ -17,5 +17,8 @@
|
|||||||
"files.trimFinalNewlines": true,
|
"files.trimFinalNewlines": true,
|
||||||
"files.trimTrailingWhitespace": true
|
"files.trimTrailingWhitespace": true
|
||||||
},
|
},
|
||||||
|
"clangd.arguments": [
|
||||||
|
"--header-insertion=never"
|
||||||
|
],
|
||||||
"cmake.copyCompileCommands": "${workspaceFolder}/develop/.cdb/compile_commands.json"
|
"cmake.copyCompileCommands": "${workspaceFolder}/develop/.cdb/compile_commands.json"
|
||||||
}
|
}
|
||||||
|
|||||||
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
|
assert(!dst); // NOLINT
|
||||||
|
|
||||||
static_assert(sizeof(Fp) <= sizeof(buffer_t));
|
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_invocable_r_v<R, Fp, Args...>);
|
||||||
static_assert(std::is_nothrow_move_constructible_v<Fp>);
|
static_assert(std::is_nothrow_move_constructible_v<Fp>);
|
||||||
|
|
||||||
@@ -8164,8 +8164,8 @@ namespace meta_hpp
|
|||||||
assert(!dst); // NOLINT
|
assert(!dst); // NOLINT
|
||||||
|
|
||||||
constexpr bool in_buffer =
|
constexpr bool in_buffer =
|
||||||
sizeof(Tp) <= sizeof(buffer_t) &&
|
(sizeof(Tp) <= sizeof(buffer_t)) &&
|
||||||
alignof(Tp) <= alignof(buffer_t) &&
|
(alignof(buffer_t) % alignof(Tp) == 0) &&
|
||||||
std::is_nothrow_move_constructible_v<Tp>;
|
std::is_nothrow_move_constructible_v<Tp>;
|
||||||
|
|
||||||
if constexpr ( in_buffer ) {
|
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-*,
|
|
||||||
'
|
|
||||||
...
|
|
||||||
@@ -149,7 +149,7 @@ namespace meta_hpp::detail
|
|||||||
assert(!dst); // NOLINT
|
assert(!dst); // NOLINT
|
||||||
|
|
||||||
static_assert(sizeof(Fp) <= sizeof(buffer_t));
|
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_invocable_r_v<R, Fp, Args...>);
|
||||||
static_assert(std::is_nothrow_move_constructible_v<Fp>);
|
static_assert(std::is_nothrow_move_constructible_v<Fp>);
|
||||||
|
|
||||||
|
|||||||
@@ -70,8 +70,8 @@ namespace meta_hpp
|
|||||||
assert(!dst); // NOLINT
|
assert(!dst); // NOLINT
|
||||||
|
|
||||||
constexpr bool in_buffer =
|
constexpr bool in_buffer =
|
||||||
sizeof(Tp) <= sizeof(buffer_t) &&
|
(sizeof(Tp) <= sizeof(buffer_t)) &&
|
||||||
alignof(Tp) <= alignof(buffer_t) &&
|
(alignof(buffer_t) % alignof(Tp) == 0) &&
|
||||||
std::is_nothrow_move_constructible_v<Tp>;
|
std::is_nothrow_move_constructible_v<Tp>;
|
||||||
|
|
||||||
if constexpr ( in_buffer ) {
|
if constexpr ( in_buffer ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user