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 */