Skip to content

Commit

Permalink
Enable StatementMacros in .clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Jun 12, 2021
1 parent 0d4f6fd commit b5616dd
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,14 @@ SpacesBeforeTrailingComments: 1
# StatementMacros don't require a trailing semicolon.
# Trailing semicolons should be omitted after these macros
# when compiling with -Wpedantic to avoid warnings.
# TODO: Enable if Clang 8 is available, Ubuntu 18.04 uses Clang 6
#StatementMacros:
# - Q_DECLARE_FLAGS
# - Q_DECLARE_METATYPE
# - Q_DECLARE_OPERATORS_FOR_FLAGS
# - Q_OBJECT
# - Q_PROPERTY
# - Q_UNUSED
# - QT_REQUIRE_VERSION
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
Expand Down

0 comments on commit b5616dd

Please sign in to comment.