diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-10-29 14:49:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-29 14:49:26 +0800 |
| commit | f65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 (patch) | |
| tree | ea1d61342cd29368e19135000ec2948813096205 /source/slang/slang-ir-dll-export.cpp | |
| parent | a729c15e9dce9f5116a38afc66329ab2ca4cea54 (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.cpp | 17 |
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 |
