diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-05-11 15:46:41 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-05-14 18:09:23 +0200 |
commit | bd6dc9ebab058be28f59de33e05e036c91951ba6 (patch) | |
tree | bd5a35c7f6c2c5d3a9275608c095055b9612d7f9 /src | |
parent | 12b0159adf88a46b6ea4ffc1f8b910ebb56fecb9 (diff) | |
download | android-node-v8-bd6dc9ebab058be28f59de33e05e036c91951ba6.tar.gz android-node-v8-bd6dc9ebab058be28f59de33e05e036c91951ba6.tar.bz2 android-node-v8-bd6dc9ebab058be28f59de33e05e036c91951ba6.zip |
src: replace `template<` → `template <`
PR-URL: https://github.com/nodejs/node/pull/20675
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/cares_wrap.cc | 2 | ||||
-rw-r--r-- | src/inspector_io.cc | 4 | ||||
-rw-r--r-- | src/inspector_js_api.cc | 2 | ||||
-rw-r--r-- | src/inspector_socket_server.cc | 2 | ||||
-rw-r--r-- | src/module_wrap.cc | 2 | ||||
-rw-r--r-- | src/node_http2.h | 2 | ||||
-rw-r--r-- | src/node_url.cc | 2 | ||||
-rw-r--r-- | src/util.h | 6 |
8 files changed, 11 insertions, 11 deletions
diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc index f829eb2b01..24d424f732 100644 --- a/src/cares_wrap.cc +++ b/src/cares_wrap.cc @@ -722,7 +722,7 @@ class QueryWrap : public AsyncWrap { }; -template<typename T> +template <typename T> Local<Array> AddrTTLToArray(Environment* env, const T* addrttls, size_t naddrttls) { diff --git a/src/inspector_io.cc b/src/inspector_io.cc index 38d88d7ab8..e6ceaf5b73 100644 --- a/src/inspector_io.cc +++ b/src/inspector_io.cc @@ -23,7 +23,7 @@ using AsyncAndAgent = std::pair<uv_async_t, Agent*>; using v8_inspector::StringBuffer; using v8_inspector::StringView; -template<typename Transport> +template <typename Transport> using TransportAndIo = std::pair<Transport*, InspectorIo*>; std::string ScriptPath(uv_loop_t* loop, const std::string& script_name) { @@ -284,7 +284,7 @@ void InspectorIo::IoThreadAsyncCb(uv_async_t* async) { } } -template<typename Transport> +template <typename Transport> void InspectorIo::ThreadMain() { uv_loop_t loop; loop.data = nullptr; diff --git a/src/inspector_js_api.cc b/src/inspector_js_api.cc index ae353defe8..802029ac4f 100644 --- a/src/inspector_js_api.cc +++ b/src/inspector_js_api.cc @@ -194,7 +194,7 @@ static void* GetAsyncTask(int64_t asyncId) { return reinterpret_cast<void*>(asyncId << 1); } -template<void (Agent::*asyncTaskFn)(void*)> +template <void (Agent::*asyncTaskFn)(void*)> static void InvokeAsyncTaskFnWithId(const FunctionCallbackInfo<Value>& args) { Environment* env = Environment::GetCurrent(args); CHECK(args[0]->IsNumber()); diff --git a/src/inspector_socket_server.cc b/src/inspector_socket_server.cc index e890f66a38..42082c9c84 100644 --- a/src/inspector_socket_server.cc +++ b/src/inspector_socket_server.cc @@ -261,7 +261,7 @@ class ServerSocket { private: explicit ServerSocket(InspectorSocketServer* server) : tcp_socket_(uv_tcp_t()), server_(server), port_(-1) {} - template<typename UvHandle> + template <typename UvHandle> static ServerSocket* FromTcpSocket(UvHandle* socket) { return node::ContainerOf(&ServerSocket::tcp_socket_, reinterpret_cast<uv_tcp_t*>(socket)); diff --git a/src/module_wrap.cc b/src/module_wrap.cc index 6e446c34fc..8bf08900c8 100644 --- a/src/module_wrap.cc +++ b/src/module_wrap.cc @@ -548,7 +548,7 @@ enum ResolveExtensionsOptions { ONLY_VIA_EXTENSIONS }; -template<ResolveExtensionsOptions options> +template <ResolveExtensionsOptions options> Maybe<URL> ResolveExtensions(const URL& search) { if (options == TRY_EXACT_NAME) { std::string filePath = search.ToFilePath(); diff --git a/src/node_http2.h b/src/node_http2.h index f4ac926bb5..f473e30286 100644 --- a/src/node_http2.h +++ b/src/node_http2.h @@ -1222,7 +1222,7 @@ class ExternalHeader : vec.len); } - template<bool may_internalize> + template <bool may_internalize> static MaybeLocal<String> New(Environment* env, nghttp2_rcbuf* buf) { if (nghttp2_rcbuf_is_static(buf)) { auto& static_str_map = env->isolate_data()->http2_static_strs; diff --git a/src/node_url.cc b/src/node_url.cc index 09199afb14..42ecf47f4c 100644 --- a/src/node_url.cc +++ b/src/node_url.cc @@ -988,7 +988,7 @@ void URLHost::ParseHost(const char* input, // Locates the longest sequence of 0 segments in an IPv6 address // in order to use the :: compression when serializing -template<typename T> +template <typename T> inline T* FindLongestZeroSequence(T* values, size_t len) { T* start = values; T* end = start + len; diff --git a/src/util.h b/src/util.h index 9595ee8f07..0e6fd5dd06 100644 --- a/src/util.h +++ b/src/util.h @@ -420,7 +420,7 @@ struct OnScopeLeave { }; // Simple RAII wrapper for contiguous data that uses malloc()/free(). -template<typename T> +template <typename T> struct MallocedBuffer { T* data; size_t size; @@ -448,10 +448,10 @@ struct MallocedBuffer { }; // Test whether some value can be called with (). -template<typename T, typename = void> +template <typename T, typename = void> struct is_callable : std::is_function<T> { }; -template<typename T> +template <typename T> struct is_callable<T, typename std::enable_if< std::is_same<decltype(void(&T::operator())), void>::value >::type> : std::true_type { }; |