From 65f26d0f5da4e4898dca41f57821b6906f48c305 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 3 Nov 2018 13:50:03 +0530 Subject: [PATCH] Integrate clang-tidy --- .clang-tidy | 14 ++++++++++++++ .travis.yml | 4 ++++ nnn.c | 1 - nnn.h | 4 ++++ 4 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .clang-tidy diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 00000000..82b705ea --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,14 @@ +--- +Checks: 'clang-diagnostic-*,clang-analyzer-*,readability-*,modernize-*,bugprone-*,misc-*,-misc-unused-parameters,google-runtime-int,-llvm-header-guard,fuchsia-restrict-system-includes,-clang-analyzer-valist.Uninitialized,-clang-analyzer-security.insecureAPI.rand,-clang-analyzer-alpha.*,-readability-magic-numbers,-readability-braces-around-statements' +WarningsAsErrors: '*' +HeaderFilterRegex: '.*(? #include #include #include diff --git a/nnn.h b/nnn.h index 07d6774c..cb3b3468 100644 --- a/nnn.h +++ b/nnn.h @@ -28,6 +28,10 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#pragma once + +#include + #define CONTROL(c) ((c) ^ 0x40) /* Supported actions */