summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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