From b9fdaf8a942ea2f79e48e3f735ba8916f3364e70 Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Sun, 6 May 2018 19:07:34 +0200 Subject: Use clang-tidy to check more code conventions (#4214) * Create clang-tidy.sh * Add clang-tidy to circle.yml * Fixed some naming violations Fixes #4164 --- .clang-tidy | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .clang-tidy (limited to '.clang-tidy') diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 000000000..b86487175 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,17 @@ +Checks: '-*,readability-identifier-naming' +CheckOptions: +- key: readability-identifier-naming.PrivateMemberPrefix + value: 'm_' +- key: readability-identifier-naming.ClassConstantCase + value: aNy_CasE +# an empty *Prefix needs a *Case to work +- key: readability-identifier-naming.ClassConstantPrefix + value: '' +#- key: readability-identifier-naming.PrivateMemberCase +# value: CamelCase +#- key: readability-identifier-naming.FunctionCase +# value: CamelCase +#- key: readability-identifier-naming.EnumCase +# value: camelBack +WarningsAsErrors: '*' +HeaderFilterRegex: '/cuberite/src/\.?[^\.]' -- cgit v1.2.3