From f3133b803b0c0eabe4566a9a8589c1459a44cd03 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 6 Nov 2022 11:59:47 +0100 Subject: [PATCH] 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 --- .clang-format | 2 ++ 1 file changed, 2 insertions(+) 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]