summaryrefslogtreecommitdiffstats
path: root/source/slang-llvm
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-10-29 13:59:28 +0800
committerGitHub <noreply@github.com>2024-10-29 13:59:28 +0800
commita729c15e9dce9f5116a38afc66329ab2ca4cea54 (patch)
tree9580072eb0d796b51c04ad5be95230a747709150 /source/slang-llvm
parenta15d770242f88aa4b33cd7d3a97de9c8d86a2315 (diff)
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
Diffstat (limited to 'source/slang-llvm')
-rw-r--r--source/slang-llvm/slang-llvm.cpp3
1 files changed, 3 insertions, 0 deletions
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