summaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2020-05-23 10:46:21 +0200
committerUwe Klotz <uklotz@mixxx.org>2020-06-11 15:59:53 +0200
commit6da36e59db5993ca5b59d3f2bf081ed3bdf8f17d (patch)
tree90cd11b82ece22cc5b7d256778f0b541d1fdb9b0 /.clang-format
parentfa5f296b5753100ff04a198921b6dc193ae3f945 (diff)
clang-format: Define more StatementMacros
TODO: Trailing semincolons after these macros should be removed.
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format11
1 files changed, 11 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
index 4918e8f54f..0d3daf194f 100644
--- a/.clang-format
+++ b/.clang-format
@@ -28,6 +28,17 @@ DerivePointerAlignment: false
ReflowComments: false
SpaceAfterTemplateKeyword: false
SpacesBeforeTrailingComments: 1
+# StatementMacros don't require a trailing semicolon.
+# Trailing semicolons should be omitted after these macros
+# when compiling with -Wpedantic to avoid warnings.
+StatementMacros:
+ - Q_DECLARE_FLAGS
+ - Q_DECLARE_METATYPE
+ - Q_DECLARE_OPERATORS_FOR_FLAGS
+ - Q_OBJECT
+ - Q_PROPERTY
+ - Q_UNUSED
+ - QT_REQUIRE_VERSION
---
Language: JavaScript
# Don't format .js files yet