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

Unified Diff: runtime/bin/vmservice_impl.cc

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/vmservice_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice_impl.cc
diff --git a/runtime/bin/vmservice_impl.cc b/runtime/bin/vmservice_impl.cc
index 004cf66dd75e95c549a809660e27e5b813634634..da2dd8deeb0bb6175e737a958604ee182d5914e9 100644
--- a/runtime/bin/vmservice_impl.cc
+++ b/runtime/bin/vmservice_impl.cc
@@ -17,17 +17,17 @@
namespace dart {
namespace bin {
-#define RETURN_ERROR_HANDLE(handle) \
- if (Dart_IsError(handle)) { \
- return handle; \
+#define RETURN_ERROR_HANDLE(handle) \
+ if (Dart_IsError(handle)) { \
+ return handle; \
}
-#define SHUTDOWN_ON_ERROR(handle) \
- if (Dart_IsError(handle)) { \
- error_msg_ = strdup(Dart_GetError(handle)); \
- Dart_ExitScope(); \
- Dart_ShutdownIsolate(); \
- return false; \
+#define SHUTDOWN_ON_ERROR(handle) \
+ if (Dart_IsError(handle)) { \
+ error_msg_ = strdup(Dart_GetError(handle)); \
+ Dart_ExitScope(); \
+ Dart_ShutdownIsolate(); \
+ return false; \
}
#define kLibrarySourceNamePrefix "/vmservice"
@@ -122,8 +122,8 @@ struct VmServiceIONativeEntry {
static VmServiceIONativeEntry _VmServiceIONativeEntries[] = {
- {"VMServiceIO_NotifyServerState", 1, NotifyServerState},
- {"VMServiceIO_Shutdown", 0, Shutdown },
+ {"VMServiceIO_NotifyServerState", 1, NotifyServerState},
+ {"VMServiceIO_Shutdown", 0, Shutdown},
};
@@ -230,15 +230,13 @@ bool VmService::Setup(const char* server_ip,
}
result = DartUtils::SetIntegerField(library, "_port", server_port);
SHUTDOWN_ON_ERROR(result);
- result = Dart_SetField(library,
- DartUtils::NewString("_autoStart"),
+ result = Dart_SetField(library, DartUtils::NewString("_autoStart"),
Dart_NewBoolean(auto_start));
SHUTDOWN_ON_ERROR(result);
- result = Dart_SetField(library,
- DartUtils::NewString("_originCheckDisabled"),
+ result = Dart_SetField(library, DartUtils::NewString("_originCheckDisabled"),
Dart_NewBoolean(dev_mode_server));
- // Are we running on Windows?
+// Are we running on Windows?
#if defined(TARGET_OS_WINDOWS)
Dart_Handle is_windows = Dart_True();
#else
@@ -248,7 +246,7 @@ bool VmService::Setup(const char* server_ip,
Dart_SetField(library, DartUtils::NewString("_isWindows"), is_windows);
SHUTDOWN_ON_ERROR(result);
- // Are we running on Fuchsia?
+// Are we running on Fuchsia?
#if defined(TARGET_OS_FUCHSIA)
Dart_Handle is_fuchsia = Dart_True();
#else
@@ -270,8 +268,7 @@ bool VmService::Setup(const char* server_ip,
SHUTDOWN_ON_ERROR(signal_watch);
Dart_Handle field_name = Dart_NewStringFromCString("_signalWatch");
SHUTDOWN_ON_ERROR(field_name);
- result =
- Dart_SetField(library, field_name, signal_watch);
+ result = Dart_SetField(library, field_name, signal_watch);
SHUTDOWN_ON_ERROR(field_name);
return true;
}
@@ -298,7 +295,8 @@ void VmService::SetServerAddress(const char* server_uri) {
Dart_Handle VmService::GetSource(const char* name) {
const intptr_t kBufferSize = 512;
char buffer[kBufferSize];
- snprintf(&buffer[0], kBufferSize-1, "%s/%s", kLibrarySourceNamePrefix, name);
+ snprintf(&buffer[0], kBufferSize - 1, "%s/%s", kLibrarySourceNamePrefix,
+ name);
const char* vmservice_source = NULL;
int r = Resources::ResourceLookup(buffer, &vmservice_source);
if (r == Resources::kNoSuchInstance) {
« no previous file with comments | « runtime/bin/vmservice_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698