Skip to content

Commit 4fe0b77

Browse files
committed
format code
1 parent 2983ed2 commit 4fe0b77

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

source/slang/slang-options.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -2964,7 +2964,11 @@ SlangResult OptionsParser::_parse(int argc, char const* const* argv)
29642964
// First try to load as source string, and fall back to loading as an IR Blob.
29652965
// Avoid guessing based on filename or inspecting the file contents.
29662966
FileStream file;
2967-
if (SLANG_FAILED(file.init(fileName.value, FileMode::Open, FileAccess::Read, FileShare::None)))
2967+
if (SLANG_FAILED(file.init(
2968+
fileName.value,
2969+
FileMode::Open,
2970+
FileAccess::Read,
2971+
FileShare::None)))
29682972
{
29692973
m_sink->diagnose(arg.loc, Diagnostics::cannotOpenFile, fileName.value);
29702974
return SLANG_FAIL;
@@ -2978,7 +2982,7 @@ SlangResult OptionsParser::_parse(int argc, char const* const* argv)
29782982
SLANG_RETURN_ON_FAIL(file.readExactly(buffer.getBuffer(), (size_t)size));
29792983
buffer[size] = 0;
29802984
file.close();
2981-
2985+
29822986
ComPtr<slang::IModule> module;
29832987
module = session->loadModuleFromSourceString(
29842988
"module",

0 commit comments

Comments
 (0)