mirror of
https://github.com/BlackMATov/kari.hpp.git
synced 2025-12-13 04:56:49 +07:00
fix CI compilation warnings
This commit is contained in:
31
headers/.clangd
Normal file
31
headers/.clangd
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
Diagnostics:
|
||||||
|
UnusedIncludes: None
|
||||||
|
MissingIncludes: None
|
||||||
|
ClangTidy:
|
||||||
|
Add:
|
||||||
|
- bugprone-*
|
||||||
|
- clang-analyzer-*
|
||||||
|
- concurrency-*
|
||||||
|
- cppcoreguidelines-*
|
||||||
|
- misc-*
|
||||||
|
- modernize-*
|
||||||
|
- performance-*
|
||||||
|
- portability-*
|
||||||
|
- readability-*
|
||||||
|
Remove:
|
||||||
|
- bugprone-crtp-constructor-accessibility
|
||||||
|
- bugprone-easily-swappable-parameters
|
||||||
|
- bugprone-macro-parentheses
|
||||||
|
- cppcoreguidelines-macro-usage
|
||||||
|
- cppcoreguidelines-non-private-member-variables-in-classes
|
||||||
|
- misc-no-recursion
|
||||||
|
- misc-non-private-member-variables-in-classes
|
||||||
|
- misc-unused-using-decls
|
||||||
|
- modernize-use-constraints
|
||||||
|
- modernize-use-trailing-return-type
|
||||||
|
- readability-identifier-length
|
||||||
|
- readability-named-parameter
|
||||||
|
- readability-redundant-access-specifiers
|
||||||
|
- readability-redundant-member-init
|
||||||
|
- readability-simplify-boolean-expr
|
||||||
|
- readability-use-anyofallof
|
||||||
@@ -14,11 +14,13 @@ target_compile_options(${PROJECT_NAME} PRIVATE
|
|||||||
/WX /W4 /bigobj>
|
/WX /W4 /bigobj>
|
||||||
$<$<CXX_COMPILER_ID:GNU>:
|
$<$<CXX_COMPILER_ID:GNU>:
|
||||||
-Werror -Wall -Wextra -Wpedantic
|
-Werror -Wall -Wextra -Wpedantic
|
||||||
|
-Wno-dangling-reference
|
||||||
-Wno-inaccessible-base>
|
-Wno-inaccessible-base>
|
||||||
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:
|
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:
|
||||||
-Werror -Weverything -Wconversion
|
-Werror -Weverything -Wconversion
|
||||||
-Wno-c++98-compat
|
-Wno-c++98-compat
|
||||||
-Wno-c++98-compat-pedantic
|
-Wno-c++98-compat-pedantic
|
||||||
|
-Wno-ctad-maybe-unsupported
|
||||||
-Wno-exit-time-destructors
|
-Wno-exit-time-destructors
|
||||||
-Wno-global-constructors
|
-Wno-global-constructors
|
||||||
-Wno-padded
|
-Wno-padded
|
||||||
@@ -30,7 +32,6 @@ target_compile_options(${PROJECT_NAME} PRIVATE
|
|||||||
-Wno-unused-macros
|
-Wno-unused-macros
|
||||||
-Wno-unused-member-function
|
-Wno-unused-member-function
|
||||||
-Wno-weak-vtables
|
-Wno-weak-vtables
|
||||||
-Wno-zero-as-null-pointer-constant
|
-Wno-zero-as-null-pointer-constant>)
|
||||||
>)
|
|
||||||
|
|
||||||
add_test(${PROJECT_NAME} ${PROJECT_NAME})
|
add_test(${PROJECT_NAME} ${PROJECT_NAME})
|
||||||
|
|||||||
Reference in New Issue
Block a user