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/core/slang-process-util.h | |
| parent | a729c15e9dce9f5116a38afc66329ab2ca4cea54 (diff) | |
format
* format
* Minor test fixes
* enable checking cpp format in ci
Diffstat (limited to 'source/core/slang-process-util.h')
| -rw-r--r-- | source/core/slang-process-util.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/source/core/slang-process-util.h b/source/core/slang-process-util.h index 14ca208f8..25cf0aca3 100644 --- a/source/core/slang-process-util.h +++ b/source/core/slang-process-util.h @@ -4,7 +4,8 @@ #include "slang-process.h" -namespace Slang { +namespace Slang +{ struct ExecuteResult { @@ -24,17 +25,20 @@ struct ExecuteResult struct ProcessUtil { - /// Execute the command line + /// Execute the command line static SlangResult execute(const CommandLine& commandLine, ExecuteResult& outExecuteResult); - /// Read from read from streams until process terminates. - /// Passing nullptr for a stream, will just discard what's in the stream - static SlangResult readUntilTermination(Process* process, List<Byte>* outStdOut, List<Byte>* stdError); + /// Read from read from streams until process terminates. + /// Passing nullptr for a stream, will just discard what's in the stream + static SlangResult readUntilTermination( + Process* process, + List<Byte>* outStdOut, + List<Byte>* stdError); - /// Read streams from process. + /// Read streams from process. static SlangResult readUntilTermination(Process* process, ExecuteResult& outExecuteResult); }; -} +} // namespace Slang #endif // SLANG_PROCESS_UTIL_H |
