Skip to content

Fix cpplint warning for src/node_crypto.cc:153 Using sizeof(type). - #196

Closed
rudi-cilibrasi wants to merge 2 commits into
nodejs:v0.12from
rudi-cilibrasi:fix-crypto-cpplint-runtime-sizeof
Closed

Fix cpplint warning for src/node_crypto.cc:153 Using sizeof(type).#196
rudi-cilibrasi wants to merge 2 commits into
nodejs:v0.12from
rudi-cilibrasi:fix-crypto-cpplint-runtime-sizeof

Conversation

@rudi-cilibrasi

Copy link
Copy Markdown

Use sizeof(varname) instead if possible [runtime/sizeof]

@bnoordhuis

Copy link
Copy Markdown
Member

Changing the sizeof changes the meaning of the check, or at least how a human reader would interpret it. I think it'd better to just squelch the warning with // NOLINT(runtime/sizeof).

@cjihrig

cjihrig commented Dec 22, 2014

Copy link
Copy Markdown
Contributor

Closing in favor of #197

@cjihrig cjihrig closed this Dec 22, 2014
eti-p-doray pushed a commit to eti-p-doray/node that referenced this pull request Aug 28, 2024
…ns (nodejs#196)

* Reland: [v8] Stop using deprecated fields of v8::FastApiCallbackOptions

Two fields on the v8::FastApiCallbackOptions struct were deprecated
recently, fallback and wasm_memory. This PR removes uses of these two
fields in node.js.

This change is a refactoring and does not add new features. Therefore
existing tests should be sufficient.

* return correct type
syg pushed a commit to syg/node that referenced this pull request May 5, 2025
…ns (nodejs#196)

* Reland: [v8] Stop using deprecated fields of v8::FastApiCallbackOptions

Two fields on the v8::FastApiCallbackOptions struct were deprecated
recently, fallback and wasm_memory. This PR removes uses of these two
fields in node.js.

This change is a refactoring and does not add new features. Therefore
existing tests should be sufficient.

* return correct type
bakkot pushed a commit to bakkot/node that referenced this pull request May 11, 2026
…ns (nodejs#196)

* Reland: [v8] Stop using deprecated fields of v8::FastApiCallbackOptions

Two fields on the v8::FastApiCallbackOptions struct were deprecated
recently, fallback and wasm_memory. This PR removes uses of these two
fields in node.js.

This change is a refactoring and does not add new features. Therefore
existing tests should be sufficient.

* return correct type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants