From 985e3db8dec6a0d2c707014c545b9a570c0782d2 Mon Sep 17 00:00:00 2001 From: Gerodote Date: Tue, 16 Apr 2024 12:40:10 +0000 Subject: [PATCH] copy paste .clang-tidy from a modern-cpp-template It's a really good default. It's copy-paste from https://github.com/filipdutescu/modern-cpp-template with one modification: turn off warnings as error for clang-tidy. --- .clang-tidy | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .clang-tidy diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..e5fa9ea --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,6 @@ +--- +Checks: '*,-fuchsia-*,-google-*,-zircon-*,-abseil-*,-modernize-use-trailing-return-type,-llvm-*,-llvmlibc-*' +CheckOptions: [{ key: misc-non-private-member-variables-in-classes, value: IgnoreClassesWithAllMemberVariablesBeingPublic }] +WarningsAsErrors: '' +HeaderFilterRegex: '' +FormatStyle: none