From 5f7576a4dc8284d502b7cc3121eff4c325f55c43 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 21 Oct 2022 05:38:46 +0200 Subject: [PATCH] update clang-{format,tidy} add REUSE header, fix modelines, indent case labels --- .clang-format | 10 ++++++++-- .clang-tidy | 7 +++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.clang-format b/.clang-format index c8f20c7..09ac6ea 100644 --- a/.clang-format +++ b/.clang-format @@ -1,4 +1,7 @@ -# -*- mode: yaml -*- +# SPDX-FileCopyrightText: 2022 tastytea +# +# SPDX-License-Identifier: CC0-1.0 + # Written for clang-format 13. # https://releases.llvm.org/13.0.0/tools/clang/docs/ClangFormatStyleOptions.html --- @@ -59,7 +62,7 @@ IncludeCategories: # stdlib headers into own group. Priority: 4 IndentAccessModifiers: false IndentCaseBlocks: false -IndentCaseLabels: false +IndentCaseLabels: true IndentExternBlock: NoIndent IndentGotoLabels: false IndentPPDirectives: AfterHash @@ -117,3 +120,6 @@ UseCRLF: false UseTab: Never # WhitespaceSensitiveMacros: ['STRINGIZE', 'PP_STRINGIZE'] ... + + +# vim: set ft=yaml: -*- mode: yaml -*- diff --git a/.clang-tidy b/.clang-tidy index a9af2f7..303a664 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2022 tastytea +# +# SPDX-License-Identifier: CC0-1.0 + # Written for clang-tidy 14. --- @@ -49,5 +53,4 @@ CheckOptions: # ↓ Clashes with static private member prefix. (static int _va - { key: readability-identifier-length.MinimumVariableNameLength, value: 2 } ... -# -*- mode: yaml; fill-column: 100; -*- -# vim: set fenc=utf-8 tw=100 et ft=yaml: +# vim: set tw=100 ft=yaml: -*- mode: yaml; fill-column: 100; -*-