From: Arun Prakash Jana Date: Sat, 3 Nov 2018 08:20:03 +0000 (+0530) Subject: Integrate clang-tidy X-Git-Tag: v2.1~68 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=65f26d0f5da4e4898dca41f57821b6906f48c305;p=nnn.git Integrate 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 */