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

Unified Diff: runtime/vm/flags.h

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/flag_list.h ('k') | runtime/vm/flags.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flags.h
diff --git a/runtime/vm/flags.h b/runtime/vm/flags.h
index 2d882d00519b6ba650f9558316645845c4314919..f5cb8f3ff190aacf6f13a073337f80cf0fff9d86 100644
--- a/runtime/vm/flags.h
+++ b/runtime/vm/flags.h
@@ -11,14 +11,11 @@
typedef const char* charp;
-#define DECLARE_FLAG(type, name) \
- extern type FLAG_##name
+#define DECLARE_FLAG(type, name) extern type FLAG_##name
#define DEFINE_FLAG(type, name, default_value, comment) \
- type FLAG_##name = Flags::Register_##type(&FLAG_##name, \
- #name, \
- default_value, \
- comment);
+ type FLAG_##name = \
+ Flags::Register_##type(&FLAG_##name, #name, default_value, comment);
#define DEFINE_FLAG_HANDLER(handler, name, comment) \
bool DUMMY_##name = Flags::Register_func(handler, #name, comment);
@@ -71,9 +68,7 @@ class Flags {
static void PrintJSON(JSONStream* js);
#endif // !PRODUCT
- static bool SetFlag(const char* name,
- const char* value,
- const char** error);
+ static bool SetFlag(const char* name, const char* value, const char** error);
private:
static Flag** flags_;
@@ -103,7 +98,7 @@ class Flags {
DISALLOW_IMPLICIT_CONSTRUCTORS(Flags);
};
-#define PRODUCT_FLAG_MARCO(name, type, default_value, comment) \
+#define PRODUCT_FLAG_MARCO(name, type, default_value, comment) \
extern type FLAG_##name;
#if defined(DEBUG)
« no previous file with comments | « runtime/vm/flag_list.h ('k') | runtime/vm/flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698