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-llvm/slang-llvm.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/slang-llvm') diff --git a/source/slang-llvm/slang-llvm.cpp b/source/slang-llvm/slang-llvm.cpp index b84a79340..811b27123 100644 --- a/source/slang-llvm/slang-llvm.cpp +++ b/source/slang-llvm/slang-llvm.cpp @@ -386,10 +386,12 @@ static uint64_t __stdcall _aulldiv(uint64_t a, uint64_t b) #endif + // These are only the functions that cannot be implemented with 'reasonable performance' in the prelude. // It is assumed that calling from JIT to C function whilst not super expensive, is an issue. // name, cppName, retType, paramTypes +// clang-format off #define SLANG_LLVM_FUNCS(x) \ x(F64_ceil, ceil, double, (double)) \ x(F64_floor, floor, double, (double)) \ @@ -476,6 +478,7 @@ static uint64_t __stdcall _aulldiv(uint64_t a, uint64_t b) \ x(__bzero, OSXSpecific::bzero, void, (void*, size_t)) #endif +// clang-format on #if SLANG_WINDOWS_FAMILY # if SLANG_PROCESSOR_X86 -- cgit v1.2.3