From 7d5e48032baa62cbe7467833b9e057900602f4b9 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 2 Mar 2021 09:44:49 +0100 Subject: Add clang-tidy file This adds a .clang-tidy file to the tree, which enables a small number of checks. The only checks that are applied are: - readability-container-size-empty: Mostly, this makes empty string checks use .empty() instead of .size(). - modernize-use-override: This adds override where applicable. This causes clang to build UHD with fewer warnings. --- .clang-tidy | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .clang-tidy diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 000000000..958f37f4c --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,7 @@ +--- +Checks: '-*,misc-throw-by-value-catch-by-reference,misc-static-assert,readability-container-size-empty,modernize-use-override' +WarningsAsErrors: '' +AnalyzeTemporaryDtors: false +FormatStyle: file +CheckOptions: +... -- cgit v1.2.3