Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2174)

Unified Diff: runtime/bin/process.h

Issue 2480793002: clang-format runtime/bin (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/platform_win.cc ('k') | runtime/bin/process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process.h
diff --git a/runtime/bin/process.h b/runtime/bin/process.h
index 4ef892908d802492ec0393f22b2fcabda1286b83..48cf21bbb271c8cea87bd33b2cc0a18a5f162216 100644
--- a/runtime/bin/process.h
+++ b/runtime/bin/process.h
@@ -19,12 +19,8 @@ class ProcessResult {
public:
ProcessResult() : exit_code_(0) {}
- void set_stdout_data(Dart_Handle stdout_data) {
- stdout_data_ = stdout_data;
- }
- void set_stderr_data(Dart_Handle stderr_data) {
- stderr_data_ = stderr_data;
- }
+ void set_stdout_data(Dart_Handle stdout_data) { stdout_data_ = stdout_data; }
+ void set_stderr_data(Dart_Handle stderr_data) { stderr_data_ = stderr_data; }
void set_exit_code(intptr_t exit_code) { exit_code_ = exit_code; }
@@ -127,9 +123,7 @@ class Process {
}
typedef void (*ExitHook)(int64_t exit_code);
- static void SetExitHook(ExitHook hook) {
- exit_hook_ = hook;
- }
+ static void SetExitHook(ExitHook hook) { exit_hook_ = hook; }
static void RunExitHook(int64_t exit_code) {
if (exit_hook_ != NULL) {
exit_hook_(exit_code);
@@ -143,8 +137,7 @@ class Process {
static Dart_Handle GetProcessIdNativeField(Dart_Handle process,
intptr_t* pid);
- static Dart_Handle SetProcessIdNativeField(Dart_Handle process,
- intptr_t pid);
+ static Dart_Handle SetProcessIdNativeField(Dart_Handle process, intptr_t pid);
private:
static int global_exit_code_;
@@ -214,9 +207,7 @@ class BufferListBase {
next_ = NULL;
}
- ~BufferListNode() {
- delete[] data_;
- }
+ ~BufferListNode() { delete[] data_; }
uint8_t* data_;
BufferListNode* next_;
@@ -242,8 +233,7 @@ class BufferListBase {
Free();
return result;
}
- for (BufferListNode* current = head_;
- current != NULL;
+ for (BufferListNode* current = head_; current != NULL;
current = current->next_) {
intptr_t to_copy = dart::Utils::Minimum(data_size_, kBufferSize);
memmove(buffer + buffer_position, current->data_, to_copy);
« no previous file with comments | « runtime/bin/platform_win.cc ('k') | runtime/bin/process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698