From 2b13efa7b78ab2bb08cba52e09b1f12af1701fd9 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sun, 7 Apr 2024 23:14:18 +0200 Subject: make: add make file and clang-{tidy,format} configs --- .clang-tidy | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .clang-tidy (limited to '.clang-tidy') diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..fa33f96 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,33 @@ +HeaderFilterRegex: '.*' +WarningsAsErrors: '*' + +# Available checks: +# https://clang.llvm.org/extra/clang-tidy/index.html#using-clang-tidy +# https://clang.llvm.org/extra/clang-tidy/checks/list.html +# +# List all checks: +# clang-tidy --checks="*" --list-checks +# +# Excuse all lints for a line inside the source code: +# some code; // NOLINT +# +# // NOLINTNEXTLINE +# some code; +# +# Excuse a single lint for a line inside the source code: +# some code; // NOLINT(bugprone-macro-parentheses) +# +# // NOLINTNEXTLINE(bugprone-macro-parentheses) +# some code; +Checks: > + -*, + readability-*, + +# readability-identifier-naming.* options: +# https://clang.llvm.org/extra/clang-tidy/checks/readability/identifier-naming.html +CheckOptions: + - { key: readability-identifier-naming.ClassCase, value: lower_case } + - { key: readability-identifier-naming.MemberCase, value: lower_case } + - { key: readability-identifier-naming.MacroDefinitionCase, value: UPPER_CASE } + - { key: readability-identifier-naming.TemplateParameterCase, value: CamelCase } + - { key: readability-identifier-naming.TypeAliasCase, value: lower_case } -- cgit v1.2.3