aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-01 13:32:11 +0100
committerDavid Robillard <d@drobilla.net>2020-11-01 13:43:16 +0100
commitf0f058dbeb40d016501328ed755392b46eefec9b (patch)
tree3fe5ede0194084d6475ee25c0d07cda271d565f5 /src
parent71a9fbf296928d3599743e88f72390ff827c5ab3 (diff)
downloadpugl-f0f058dbeb40d016501328ed755392b46eefec9b.tar.gz
pugl-f0f058dbeb40d016501328ed755392b46eefec9b.tar.bz2
pugl-f0f058dbeb40d016501328ed755392b46eefec9b.zip
Run clang-tidy on all headers and fix various issues
It's a nightmare trying to get this thing to check everything.
Diffstat (limited to 'src')
-rw-r--r--src/.clang-tidy2
-rw-r--r--src/implementation.h6
2 files changed, 5 insertions, 3 deletions
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