summaryrefslogtreecommitdiff
path: root/source/core/slang-process-util.h
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/core/slang-process-util.h
parenta729c15e9dce9f5116a38afc66329ab2ca4cea54 (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.h18
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