Skip to content

Commit 146d63a

Browse files
author
Dane Springmeyer
committed
fix [cppcoreguidelines-pro-type-cstyle-cast]
1 parent 82fab55 commit 146d63a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/module.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,11 @@ static void init(v8::Local<v8::Object> target)
3737
// Include your .hpp file at the top of this file.
3838
}
3939

40-
NODE_MODULE(module, init)
40+
// Here we initialize the module (we only do this once)
41+
// by attaching the init function to the module. This invokes
42+
// a variety of magic from inside nodejs core that we don't need to
43+
// worry about, but if you care the details are at https://github.com/nodejs/node/blob/34d1b1144e1af8382dad71c28c8d956ebf709801/src/node.h#L431-L518
44+
// We mark this NOLINT to avoid the clang-tidy checks
45+
// warning about code inside nodejs that we don't control and can't
46+
// directly change to avoid the warning.
47+
NODE_MODULE(module, init) // NOLINT

0 commit comments

Comments
 (0)