From cbc3dd997eb90d629d1b9912b7a5a40eb82343df Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Wed, 16 May 2018 11:50:48 +0200 Subject: src, tools: add check for left leaning pointers This commit adds a rule to cpplint to check that pointers in the code base lean to the left and not right, and also fixes the violations reported. PR-URL: https://github.com/nodejs/node/pull/21010 Reviewed-By: Ben Noordhuis Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell --- src/node_internals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/node_internals.h') diff --git a/src/node_internals.h b/src/node_internals.h index 7760eb26c6..f76aacd7e8 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -549,7 +549,7 @@ int ThreadPoolWork::CancelWork() { return uv_cancel(reinterpret_cast(&work_req_)); } -static inline const char *errno_string(int errorno) { +static inline const char* errno_string(int errorno) { #define ERRNO_CASE(e) case e: return #e; switch (errorno) { #ifdef EACCES -- cgit v1.2.3