diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-05-16 11:50:48 +0200 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-06-07 05:46:51 +0200 |
commit | cbc3dd997eb90d629d1b9912b7a5a40eb82343df (patch) | |
tree | 822b55186ac52c127a686d2d828c15518be20186 /src/exceptions.cc | |
parent | 75e91659887012f743aa4487d6d4ce3d765c028a (diff) | |
download | android-node-v8-cbc3dd997eb90d629d1b9912b7a5a40eb82343df.tar.gz android-node-v8-cbc3dd997eb90d629d1b9912b7a5a40eb82343df.tar.bz2 android-node-v8-cbc3dd997eb90d629d1b9912b7a5a40eb82343df.zip |
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 <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/exceptions.cc')
-rw-r--r-- | src/exceptions.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/exceptions.cc b/src/exceptions.cc index 1bcc7651a2..0007854595 100644 --- a/src/exceptions.cc +++ b/src/exceptions.cc @@ -22,9 +22,9 @@ using v8::Value; Local<Value> ErrnoException(Isolate* isolate, int errorno, - const char *syscall, - const char *msg, - const char *path) { + const char* syscall, + const char* msg, + const char* path) { Environment* env = Environment::GetCurrent(isolate); Local<Value> e; @@ -143,8 +143,8 @@ Local<Value> UVException(Isolate* isolate, #ifdef _WIN32 // Does about the same as strerror(), // but supports all windows error messages -static const char *winapi_strerror(const int errorno, bool* must_free) { - char *errmsg = nullptr; +static const char* winapi_strerror(const int errorno, bool* must_free) { + char* errmsg = nullptr; FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, nullptr, errorno, |