Commit 119f87a8 authored by Samuel Debionne's avatar Samuel Debionne
Browse files

Add tidy config

parent d4a03053
---
Checks: modernize-*,portability-*,readability-*,bugprone-*,cppcoreguidelines-*,mpi-*
HeaderFilterRegex: \.hpp
AnalyzeTemporaryDtors: false
FormatStyle: none
CheckOptions:
- { key: readability-identifier-naming.NamespaceCase, value: lower_case }
- { key: readability-identifier-naming.FunctionCase, value: lower_case }
- { key: readability-identifier-naming.ClassCase, value: lower_case }
- { key: readability-identifier-naming.MethodCase, value: lower_case }
- { key: readability-identifier-naming.StructCase, value: lower_case }
- { key: readability-identifier-naming.VariableCase, value: lower_case }
- { key: readability-identifier-naming.GlobalConstantCase, value: lower_case }
...
......@@ -51,8 +51,9 @@ if(CMake_RUN_CLANG_TIDY)
message(WARNING "CMake_RUN_CLANG_TIDY is ON but clang-tidy is not found!")
set(CMAKE_CXX_CLANG_TIDY "" CACHE STRING "" FORCE)
else()
set(CLANG_TIDY_CHECKS "-*,modernize-*")
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND};-checks=${CLANG_TIDY_CHECKS};-header-filter='^${CMAKE_SOURCE_DIR}/include/lima/*'")
#set(CLANG_TIDY_CHECKS "-*,modernize-*,,portability-*,readability-*,cppcoreguidelines-*,mpi-*")
#set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND};-checks=${CLANG_TIDY_CHECKS};-header-filter='^${CMAKE_SOURCE_DIR}/include/lima/*'")
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND}")
endif()
# Create a preprocessor definition that depends on .clang-tidy content so
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment