From 071db248789bf57ae0b489610b2574da816e649a Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 5 May 2022 12:50:18 +0200 Subject: WIP clang-tidy configuration --- .clang-tidy | 9 +++++++++ .editorconfig | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 .clang-tidy diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..47e256e --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,9 @@ +Checks: '-*,readability-identifier-naming' +CheckOptions: + - { key: readability-identifier-naming.NamespaceCase, value: lower_case } + - { key: readability-identifier-naming.StructCase, value: lower_case } + - { key: readability-identifier-naming.FunctionCase, value: lower_case } + - { key: readability-identifier-naming.VariableCase, value: lower_case } + - { key: readability-identifier-naming.GlobalConstantCase, value: UPPER_CASE } + +# vim: ft=yaml diff --git a/.editorconfig b/.editorconfig index a54d21c..a9383e8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,11 @@ +root = true + [*] indent_style = tab indent_size = 4 +end_of_line = lf +insert_final_newline = true + +[*.md] +indent_style = space +indent_size = 2 -- cgit v1.2.3 From 1805d0b3cf4d838f7d3e06489ab106fb2b2fc3de Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 10 May 2022 13:12:41 +0200 Subject: clang-tidy config done --- .clang-tidy | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 47e256e..054a943 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,9 +1,16 @@ Checks: '-*,readability-identifier-naming' CheckOptions: - - { key: readability-identifier-naming.NamespaceCase, value: lower_case } - - { key: readability-identifier-naming.StructCase, value: lower_case } - - { key: readability-identifier-naming.FunctionCase, value: lower_case } - - { key: readability-identifier-naming.VariableCase, value: lower_case } - - { key: readability-identifier-naming.GlobalConstantCase, value: UPPER_CASE } + - { key: readability-identifier-naming.FunctionCase, value: lower_case } + - { key: readability-identifier-naming.FunctionPrefix, value: w2_ } + - { key: readability-identifier-naming.GlobalVariableCase, value: lower_case } + - { key: readability-identifier-naming.GlobalVariablePrefix, value: g_w2_ } + - { key: readability-identifier-naming.GlobalConstantCase, value: UPPER_CASE } + - { key: readability-identifier-naming.GlobalConstantPrefix, value: W2_ } + - { key: readability-identifier-naming.MacroDefinitionCase, value: UPPER_CASE } + - { key: readability-identifier-naming.MacroDefinitionPrefix, value: W2_ } + - { key: readability-identifier-naming.StructCase, value: lower_case } + - { key: readability-identifier-naming.StructPrefix, value: w2_s_ } + - { key: readability-identifier-naming.EnumCase, value: lower_case } + - { key: readability-identifier-naming.EnumPrefix, value: w2_e_ } # vim: ft=yaml -- cgit v1.2.3