From cbdc1fdf445069a87bf60e8a565541fdb40c3d06 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_main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/node_main.cc') diff --git a/src/node_main.cc b/src/node_main.cc index 8907c47ae0e..bea1af7bdde 100644 --- a/src/node_main.cc +++ b/src/node_main.cc @@ -27,7 +27,7 @@ #include #include -int wmain(int argc, wchar_t *wargv[]) { +int wmain(int argc, wchar_t* wargv[]) { if (!IsWindows7OrGreater()) { fprintf(stderr, "This application is only supported on Windows 7, " "Windows Server 2008 R2, or higher."); @@ -91,7 +91,7 @@ namespace node { extern bool linux_at_secure; } // namespace node -int main(int argc, char *argv[]) { +int main(int argc, char* argv[]) { #if defined(__POSIX__) && defined(NODE_SHARED_MODE) // In node::PlatformInit(), we squash all signal handlers for non-shared lib // build. In order to run test cases against shared lib build, we also need -- cgit v1.2.3