From a729c15e9dce9f5116a38afc66329ab2ca4cea54 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 29 Oct 2024 13:59:28 +0800 Subject: preparation for clang format (#5422) * Clang-format excludes * Add .clang-format * Don't clang-format in external * Missing includes and forward declarations * Replace wonky include-once macro name * neaten include naming * Add clang-format to formatting script * Add xargs and diff to required binaries * add clang-format to ci formatting check * Add max version check to formatting script * temporarily disable checking formatting for cpp files --- source/slang/slang-repro.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/slang/slang-repro.cpp') diff --git a/source/slang/slang-repro.cpp b/source/slang/slang-repro.cpp index 32f8d3289..4e5a03bc3 100644 --- a/source/slang/slang-repro.cpp +++ b/source/slang/slang-repro.cpp @@ -26,6 +26,7 @@ namespace Slang { // to set up the thing to hash. // // Note that bool is in the list because size of bool can change between compilers. +// clang-format off #define SLANG_STATE_TYPES(x) \ x(Util::FileState) \ x(Util::PathInfoState) \ @@ -52,7 +53,8 @@ namespace Slang { x(OptimizationLevel) \ x(ContainerFormat) \ x(PassThroughMode) \ - x(SlangMatrixLayoutMode) \ + x(SlangMatrixLayoutMode) +// clang-format on #define SLANG_STATE_TYPE_SIZE(x) uint32_t(sizeof(x)), -- cgit v1.2.3