diff options
author | Paul Wicking <paul.wicking@qt.io> | 2020-08-20 14:50:00 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2020-08-23 05:30:38 +0000 |
commit | 55d0bcaf92cb5f155e51e336f5367e97101fa2c5 (patch) | |
tree | a2f5d0ff5bc280f15dbb6158b4fcd9e04a8537f1 /src | |
parent | 9a921d78e87452962043721669f3027f7566eef4 (diff) |
Ignore clang-format for GUI snippets
Among other things, this allows for ignoring proper indentation
of code that's contained in a wrapper function which serves the
purpose of compiling the snippet only. This is useful because
the extra indentation is included in the output generated by QDoc.
Task-number: QTBUG-84470
Change-Id: I3d702e82169a87447939f357cbee15cb0f74a391
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/doc/snippets/_clang-format | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/doc/snippets/_clang-format b/src/gui/doc/snippets/_clang-format new file mode 100644 index 0000000000..8e9b87bb47 --- /dev/null +++ b/src/gui/doc/snippets/_clang-format @@ -0,0 +1,2 @@ +# Ignore formatting of snippet code. +DisableFormat: true |