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

Unified Diff: runtime/vm/tags.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/tags.h ('k') | runtime/vm/thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/tags.cc
diff --git a/runtime/vm/tags.cc b/runtime/vm/tags.cc
index ccb52ab200341ffc836da8687c4af016ff20213a..30e284c96c04d445d1edfb175ff4497a3496095c 100644
--- a/runtime/vm/tags.cc
+++ b/runtime/vm/tags.cc
@@ -83,12 +83,13 @@ void VMTag::RegisterRuntimeEntry(RuntimeEntry* runtime_entry) {
VMTag::TagEntry VMTag::entries_[] = {
- { "InvalidTag", kInvalidTagId, },
-#define DEFINE_VM_TAG_ENTRY(tag) \
- { ""#tag, k##tag##TagId },
- VM_TAG_LIST(DEFINE_VM_TAG_ENTRY)
+ {
+ "InvalidTag", kInvalidTagId,
+ },
+#define DEFINE_VM_TAG_ENTRY(tag) {"" #tag, k##tag##TagId},
+ VM_TAG_LIST(DEFINE_VM_TAG_ENTRY)
#undef DEFINE_VM_TAG_ENTRY
- { "kNumVMTags", kNumVMTags },
+ {"kNumVMTags", kNumVMTags},
};
@@ -162,8 +163,7 @@ const char* UserTags::TagName(uword tag_id) {
ASSERT(tag_id >= kUserTagIdOffset);
ASSERT(tag_id < kUserTagIdOffset + kMaxUserTags);
Zone* zone = Thread::Current()->zone();
- const UserTag& tag =
- UserTag::Handle(zone, UserTag::FindTagById(tag_id));
+ const UserTag& tag = UserTag::Handle(zone, UserTag::FindTagById(tag_id));
ASSERT(!tag.IsNull());
const String& label = String::Handle(zone, tag.label());
return label.ToCString();
« no previous file with comments | « runtime/vm/tags.h ('k') | runtime/vm/thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698