Skip to content

Commit

Permalink
Add linting with clang tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-novo committed Jan 6, 2025
1 parent 6b15e29 commit 6702377
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Checks: '-*,--clang-analyzer-*,-clang-analyzer-cplusplus*,google-*,bugprone-*,cppcoreguidelines-*,readability-*,-*-magic-numbers,-bugprone-easily-swappable-parameters'
# Checks: '-*,readability-identifier-naming'
HeaderFilterRegex: '.*' # Makes certain to check header files (by default ignores them)
CheckOptions:
readability-identifier-naming.LocalVariableCase: 'lower_case'
readability-identifier-naming.MemberCase: 'lower_case'
readability-identifier-naming.MemberSuffix: '_'
readability-identifier-naming.FunctionCase: 'camelBack'
readability-identifier-naming.ClassCase: 'CamelCase'
readability-identifier-naming.EnumCase: 'UPPER_CASE'
readability-identifier-naming.ConstexprVariableCase: 'UPPER_CASE'
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ cmake_minimum_required(VERSION 3.12)

project(gridkit)

set(CMAKE_CXX_CLANG_TIDY clang-tidy)

set(PACKAGE_NAME "GRIDKIT")
set(PACKAGE_STRING "GRIDKIT 0.0.7")
set(PACKAGE_TARNAME "gridkit")
Expand Down

0 comments on commit 6702377

Please sign in to comment.