From f0f058dbeb40d016501328ed755392b46eefec9b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 1 Nov 2020 13:32:11 +0100 Subject: Run clang-tidy on all headers and fix various issues It's a nightmare trying to get this thing to check everything. --- src/.clang-tidy | 2 ++ src/implementation.h | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/.clang-tidy b/src/.clang-tidy index 7bc36f7..bdbd078 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -5,8 +5,10 @@ Checks: > -bugprone-suspicious-string-compare, -cert-flp30-c, -clang-analyzer-security.FloatLoopCounter, + -clang-diagnostic-unused-macros, -hicpp-multiway-paths-covered, -hicpp-signed-bitwise, + -llvm-header-guard, -readability-else-after-return, FormatStyle: file HeaderFilterRegex: 'pugl/.*' diff --git a/src/implementation.h b/src/implementation.h index 3a8b6ca..6d961a8 100644 --- a/src/implementation.h +++ b/src/implementation.h @@ -19,8 +19,8 @@ @brief Shared declarations for implementation. */ -#ifndef PUGL_DETAIL_IMPLEMENTATION_H -#define PUGL_DETAIL_IMPLEMENTATION_H +#ifndef PUGL_IMPLEMENTATION_H +#define PUGL_IMPLEMENTATION_H #include "types.h" @@ -84,4 +84,4 @@ puglSetInternalClipboard(PuglView* view, PUGL_END_DECLS -#endif // PUGL_DETAIL_IMPLEMENTATION_H +#endif // PUGL_IMPLEMENTATION_H -- cgit v1.2.1