summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-11-06 11:59:47 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-11-06 15:38:07 +0100
commitf3133b803b0c0eabe4566a9a8589c1459a44cd03 (patch)
tree4eda2392bd591c223561f6b218c851aed6529cec /.clang-format
parent64f42fe944cff92353c6900f813114ae41d132aa (diff)
Document that .clang-format would benefit from StatementMacros
(see the commit message of 4280a3257948e57cdf194a6e23718b46d907bbd6 "-Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): tools" about the recent need of some "clang-format off" in tools/source/misc/json_writer.cxx), in case we would ever bump our clang-format version Change-Id: I4ee9385f84db415903790332c81161c5dbc7614f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142350 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format2
1 files changed, 2 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
index 16fd8b1263e7..eff3ab612112 100644
--- a/.clang-format
+++ b/.clang-format
@@ -46,3 +46,5 @@ SpaceBeforeAssignmentOperators: true
ContinuationIndentWidth: 4
SortIncludes: false
SortUsingDeclarations: false
+# clang-format 8:
+# StatementMacros: [SAL_WNODEPRECATED_DECLARATIONS_POP, SAL_WNODEPRECATED_DECLARATIONS_PUSH]