From: Behdad Esfahbod Date: Tue, 7 May 2019 23:53:03 +0000 (-0700) Subject: Whitespace X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7654ebe3a51c98b4d3bf6fb11779024f1c770962;p=platform%2Fupstream%2FlibHarfBuzzSharp.git Whitespace --- diff --git a/src/hb-algs.hh b/src/hb-algs.hh index ee604e8..2d2fe31 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -38,13 +38,15 @@ struct { template T operator () (const T& v) const { return v; } -} HB_FUNCOBJ (hb_identity); +} +HB_FUNCOBJ (hb_identity); struct { template bool operator () (const T& v) const { return bool (v); } -} HB_FUNCOBJ (hb_bool); +} +HB_FUNCOBJ (hb_bool); struct { @@ -64,7 +66,8 @@ struct template auto operator () (const T& v) const HB_RETURN (uint32_t, impl (v, hb_prioritize)) -} HB_FUNCOBJ (hb_hash); +} +HB_FUNCOBJ (hb_hash); struct { @@ -94,7 +97,8 @@ struct hb_prioritize, hb_forward (vs)...) ) -} HB_FUNCOBJ (hb_invoke); +} +HB_FUNCOBJ (hb_invoke); struct { @@ -119,7 +123,8 @@ struct hb_forward (v), hb_prioritize) ) -} HB_FUNCOBJ (hb_has); +} +HB_FUNCOBJ (hb_has); struct { @@ -145,7 +150,8 @@ struct hb_forward (v), hb_prioritize) ) -} HB_FUNCOBJ (hb_get); +} +HB_FUNCOBJ (hb_get); template @@ -170,24 +176,28 @@ struct { template auto operator () (const Pair& pair) const HB_AUTO_RETURN (pair.first) -} HB_FUNCOBJ (hb_first); +} +HB_FUNCOBJ (hb_first); struct { template auto operator () (const Pair& pair) const HB_AUTO_RETURN (pair.second) -} HB_FUNCOBJ (hb_second); +} +HB_FUNCOBJ (hb_second); struct { template auto operator () (const T& a, const T2& b) const HB_AUTO_RETURN (a <= b ? a : b) -} HB_FUNCOBJ (hb_min); +} +HB_FUNCOBJ (hb_min); struct { template auto operator () (const T& a, const T2& b) const HB_AUTO_RETURN (a >= b ? a : b) -} HB_FUNCOBJ (hb_max); +} +HB_FUNCOBJ (hb_max); /* diff --git a/src/hb-iter.hh b/src/hb-iter.hh index dc57e2b..418ae95 100644 --- a/src/hb-iter.hh +++ b/src/hb-iter.hh @@ -164,7 +164,8 @@ struct operator () (Type (&array)[length]) const { return hb_array_t (array, length); } -} HB_FUNCOBJ (hb_iter); +} +HB_FUNCOBJ (hb_iter); /* Mixin to fill in what the subclass doesn't provide. */ template @@ -360,7 +361,8 @@ struct hb_map_iter_factory_t operator () (Proj&& f) const { return hb_map_iter_factory_t (f); } -} HB_FUNCOBJ (hb_map); +} +HB_FUNCOBJ (hb_map); template @@ -408,7 +410,8 @@ struct hb_filter_iter_factory_t operator () (Pred&& p = hb_bool, Proj&& f = hb_identity) const { return hb_filter_iter_factory_t (p, f); } -} HB_FUNCOBJ (hb_filter); +} +HB_FUNCOBJ (hb_filter); template struct hb_reduce_t @@ -437,7 +440,8 @@ struct hb_reduce_t operator () (Redu&& r, InitT init_value) const { return hb_reduce_t (r, init_value); } -} HB_FUNCOBJ (hb_reduce); +} +HB_FUNCOBJ (hb_reduce); /* hb_zip() */ @@ -480,7 +484,8 @@ struct hb_zip_iter_t operator () (A& a, B &b) const { return hb_zip_iter_t (hb_iter (a), hb_iter (b)); } -} HB_FUNCOBJ (hb_zip); +} +HB_FUNCOBJ (hb_zip); /* hb_enumerate */ @@ -526,7 +531,8 @@ struct hb_enumerate_iter_t operator () (Iterable& it) const { return hb_enumerate_iter_t (hb_iter (it)); } -} HB_FUNCOBJ (hb_enumerate); +} +HB_FUNCOBJ (hb_enumerate); /* hb_apply() */ @@ -556,7 +562,8 @@ struct template hb_apply_t operator () (Appl *a) const { return hb_apply_t (*a); } -} HB_FUNCOBJ (hb_apply); +} +HB_FUNCOBJ (hb_apply); /* hb_sink() */ @@ -586,7 +593,8 @@ struct template hb_sink_t operator () (Sink *s) const { return hb_sink_t (*s); } -} HB_FUNCOBJ (hb_sink); +} +HB_FUNCOBJ (hb_sink); /* hb-drain: hb_sink to void / blackhole / /dev/null. */ @@ -600,7 +608,8 @@ struct for (; it; ++it) (void) *it; } -} HB_FUNCOBJ (hb_drain); +} +HB_FUNCOBJ (hb_drain); /* hb_unzip(): unzip and sink to two sinks. */ @@ -635,7 +644,8 @@ struct template hb_unzip_t operator () (Sink1 *s1, Sink2 *s2) const { return hb_unzip_t (*s1, *s2); } -} HB_FUNCOBJ (hb_unzip); +} +HB_FUNCOBJ (hb_unzip); /* hb-all, hb-any, hb-none. */ @@ -652,7 +662,8 @@ struct return false; return true; } -} HB_FUNCOBJ (hb_all); +} +HB_FUNCOBJ (hb_all); struct { template (arg))); #pragma GCC diagnostic pop } -} HB_FUNCOBJ (hb_addressof); +} +HB_FUNCOBJ (hb_addressof); template static inline T hb_declval (); #define hb_declval(T) (hb_declval ()) @@ -125,8 +126,8 @@ struct template auto operator () (T *v) const HB_AUTO_RETURN (*v) - -} HB_FUNCOBJ (hb_deref); +} +HB_FUNCOBJ (hb_deref); struct { @@ -135,8 +136,8 @@ struct template auto operator () (T& v) const HB_AUTO_RETURN (hb_addressof (v)) - -} HB_FUNCOBJ (hb_ref); +} +HB_FUNCOBJ (hb_ref); template struct hb_reference_wrapper