Bug 1517259 - Part 1: Change parameter name in JS_FOR_EACH_TYPED_ARRAY macro for better clang-format output. r=tcampbell
authorAndré Bargull <andre.bargull@gmail.com>
Thu, 03 Jan 2019 02:42:41 -0800
changeset 509954 0698427ff246dfce0d7a30778d5e2888108ff24c
parent 509953 247a8fda0496136d355bce3d32731904b13d545d
child 509955 816dcd83b0c4677f417056766ee2b3223ff78822
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstcampbell
bugs1517259
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1517259 - Part 1: Change parameter name in JS_FOR_EACH_TYPED_ARRAY macro for better clang-format output. r=tcampbell
js/src/vm/TypedArrayObject.h
--- a/js/src/vm/TypedArrayObject.h
+++ b/js/src/vm/TypedArrayObject.h
@@ -12,21 +12,26 @@
 
 #include "gc/Barrier.h"
 #include "js/Class.h"
 #include "vm/ArrayBufferObject.h"
 #include "vm/ArrayBufferViewObject.h"
 #include "vm/JSObject.h"
 #include "vm/SharedArrayObject.h"
 
-#define JS_FOR_EACH_TYPED_ARRAY(macro)                                      \
-  macro(int8_t, Int8) macro(uint8_t, Uint8) macro(int16_t, Int16)           \
-      macro(uint16_t, Uint16) macro(int32_t, Int32) macro(uint32_t, Uint32) \
-          macro(float, Float32) macro(double, Float64)                      \
-              macro(uint8_clamped, Uint8Clamped)
+#define JS_FOR_EACH_TYPED_ARRAY(MACRO) \
+  MACRO(int8_t, Int8)                  \
+  MACRO(uint8_t, Uint8)                \
+  MACRO(int16_t, Int16)                \
+  MACRO(uint16_t, Uint16)              \
+  MACRO(int32_t, Int32)                \
+  MACRO(uint32_t, Uint32)              \
+  MACRO(float, Float32)                \
+  MACRO(double, Float64)               \
+  MACRO(uint8_clamped, Uint8Clamped)
 
 namespace js {
 
 /*
  * TypedArrayObject
  *
  * The non-templated base class for the specific typed implementations.
  * This class holds all the member variables that are used by