From 55d0bcaf92cb5f155e51e336f5367e97101fa2c5 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Thu, 20 Aug 2020 14:50:00 +0200 Subject: [PATCH] Ignore clang-format for GUI snippets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Topi Reiniƶ --- src/gui/doc/snippets/_clang-format | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 src/gui/doc/snippets/_clang-format 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