From f65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 29 Oct 2024 14:49:26 +0800 Subject: format * format * Minor test fixes * enable checking cpp format in ci --- source/slang/slang-ir-dll-export.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'source/slang/slang-ir-dll-export.cpp') diff --git a/source/slang/slang-ir-dll-export.cpp b/source/slang/slang-ir-dll-export.cpp index af5f70eb3..a78889bed 100644 --- a/source/slang/slang-ir-dll-export.cpp +++ b/source/slang/slang-ir-dll-export.cpp @@ -1,10 +1,10 @@ // slang-ir-dll-export.cpp #include "slang-ir-dll-export.h" -#include "slang-ir.h" #include "slang-ir-insts.h" #include "slang-ir-marshal-native-call.h" #include "slang-ir-util.h" +#include "slang-ir.h" namespace Slang { @@ -32,20 +32,23 @@ struct DllExportContext void processModule() { - struct Candidate { IRFunc* func; IRDllExportDecoration* exportDecoration; }; + struct Candidate + { + IRFunc* func; + IRDllExportDecoration* exportDecoration; + }; List candidates; for (auto childFunc : module->getGlobalInsts()) { - switch(childFunc->getOp()) + switch (childFunc->getOp()) { case kIROp_Func: if (auto dllExportDecoration = childFunc->findDecoration()) { - candidates.add(Candidate{ as(childFunc), dllExportDecoration }); + candidates.add(Candidate{as(childFunc), dllExportDecoration}); } break; - default: - break; + default: break; } } @@ -64,4 +67,4 @@ void generateDllExportFuncs(IRModule* module, DiagnosticSink* sink) return context.processModule(); } -} +} // namespace Slang -- cgit v1.2.3