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-glslang/slang-glslang.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/slang-glslang') diff --git a/source/slang-glslang/slang-glslang.h b/source/slang-glslang/slang-glslang.h index 00205a114..f3d81fc62 100644 --- a/source/slang-glslang/slang-glslang.h +++ b/source/slang-glslang/slang-glslang.h @@ -20,6 +20,8 @@ struct glsl_SPIRVVersion int major, minor, patch; }; +// clang-format off + #define SLANG_GLSLANG_COMPILE_REQUEST_1_0(x) \ x(sourcePath) \ x(inputBegin) \ @@ -35,6 +37,8 @@ struct glsl_SPIRVVersion #define SLANG_GLSLANG_FIELD_COPY(name) name = in.name; +// clang-format on + // Pre-declare struct glslang_CompileRequest_1_1; -- cgit v1.2.3