summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-dll-export.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-10-29 14:49:26 +0800
committerGitHub <noreply@github.com>2024-10-29 14:49:26 +0800
commitf65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 (patch)
treeea1d61342cd29368e19135000ec2948813096205 /source/slang/slang-ir-dll-export.cpp
parenta729c15e9dce9f5116a38afc66329ab2ca4cea54 (diff)
format
* format * Minor test fixes * enable checking cpp format in ci
Diffstat (limited to 'source/slang/slang-ir-dll-export.cpp')
-rw-r--r--source/slang/slang-ir-dll-export.cpp17
1 files changed, 10 insertions, 7 deletions
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<Candidate> candidates;
for (auto childFunc : module->getGlobalInsts())
{
- switch(childFunc->getOp())
+ switch (childFunc->getOp())
{
case kIROp_Func:
if (auto dllExportDecoration = childFunc->findDecoration<IRDllExportDecoration>())
{
- candidates.add(Candidate{ as<IRFunc>(childFunc), dllExportDecoration });
+ candidates.add(Candidate{as<IRFunc>(childFunc), dllExportDecoration});
}
break;
- default:
- break;
+ default: break;
}
}
@@ -64,4 +67,4 @@ void generateDllExportFuncs(IRModule* module, DiagnosticSink* sink)
return context.processModule();
}
-}
+} // namespace Slang