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

Unified Diff: runtime/vm/os_win.cc

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge 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/vm/os_thread_win.cc ('k') | runtime/vm/pages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_win.cc
diff --git a/runtime/vm/os_win.cc b/runtime/vm/os_win.cc
index 129dcd12eaef6690b9da8b18bb22efd1d2ef085c..1134ce70c02dd1e72881bc4b0932f76c4ac92d78 100644
--- a/runtime/vm/os_win.cc
+++ b/runtime/vm/os_win.cc
@@ -7,10 +7,10 @@
#include "vm/os.h"
-#include <malloc.h> // NOLINT
+#include <malloc.h> // NOLINT
#include <process.h> // NOLINT
-#include <psapi.h> // NOLINT
-#include <time.h> // NOLINT
+#include <psapi.h> // NOLINT
+#include <time.h> // NOLINT
#include "platform/utils.h"
#include "platform/assert.h"
@@ -79,14 +79,12 @@ const char* OS::GetTimeZoneName(int64_t seconds_since_epoch) {
}
// Convert the wchar string to a null-terminated utf8 string.
- wchar_t* wchar_name = daylight_savings
- ? zone_information.DaylightName
- : zone_information.StandardName;
- intptr_t utf8_len = WideCharToMultiByte(
- CP_UTF8, 0, wchar_name, -1, NULL, 0, NULL, NULL);
+ wchar_t* wchar_name = daylight_savings ? zone_information.DaylightName
+ : zone_information.StandardName;
+ intptr_t utf8_len =
+ WideCharToMultiByte(CP_UTF8, 0, wchar_name, -1, NULL, 0, NULL, NULL);
char* name = Thread::Current()->zone()->Alloc<char>(utf8_len + 1);
- WideCharToMultiByte(
- CP_UTF8, 0, wchar_name, -1, name, utf8_len, NULL, NULL);
+ WideCharToMultiByte(CP_UTF8, 0, wchar_name, -1, name, utf8_len, NULL, NULL);
name[utf8_len] = '\0';
return name;
}
@@ -377,8 +375,7 @@ bool OS::StringToInt64(const char* str, int64_t* value) {
if (str[0] == '-') {
i = 1;
}
- if ((str[i] == '0') &&
- (str[i + 1] == 'x' || str[i + 1] == 'X') &&
+ if ((str[i] == '0') && (str[i + 1] == 'x' || str[i + 1] == 'X') &&
(str[i + 2] != '\0')) {
base = 16;
}
@@ -388,8 +385,7 @@ bool OS::StringToInt64(const char* str, int64_t* value) {
}
-void OS::RegisterCodeObservers() {
-}
+void OS::RegisterCodeObservers() {}
void OS::PrintErr(const char* format, ...) {
« no previous file with comments | « runtime/vm/os_thread_win.cc ('k') | runtime/vm/pages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698