Title: [readability/casting] false positive with typedef · Issue #409 · cpplint/cpplint · GitHub
Open Graph Title: [readability/casting] false positive with typedef · Issue #409 · cpplint/cpplint
X Title: [readability/casting] false positive with typedef · Issue #409 · cpplint/cpplint
Description: In Node.js, we have this code that triggers the readability/casting error: typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)(void); https://github.com/nodejs/node/blob/6706b22e350490d3e8e697377b5f388df9305aa0/src/node_api_...
Open Graph Description: In Node.js, we have this code that triggers the readability/casting error: typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)(void); https://github.com/nodejs/node/blob/6706b22e350490...
X Description: In Node.js, we have this code that triggers the readability/casting error: typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)(void); https://github.com/nodejs/node/blob/6706b22e350490...
Opengraph URL: https://github.com/cpplint/cpplint/issues/409
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[readability/casting] false positive with typedef","articleBody":"In Node.js, we have this code that triggers the `readability/casting error`:\n\n```c++\ntypedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)(void);\n```\n\nhttps://github.com/nodejs/node/blob/6706b22e350490d3e8e697377b5f388df9305aa0/src/node_api_types.h#L8\n\n\u003e src/node_api_types.h:8: Using deprecated casting style. Use static_cast\u003cint32_t\u003e(...) instead [readability/casting] [4]\n","author":{"url":"https://github.com/targos","@type":"Person","name":"targos"},"datePublished":"2025-11-26T17:00:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/409/cpplint/issues/409"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ab693c7a-1085-0be2-7845-7df5d43b47c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E14A:EBEF1:12344809:1298963C:696E9B04 |
| html-safe-nonce | 7d7d404e8bc51d6420f138b089e12f12d1454cbc2ebdcb7ba38e795ff75b8807 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTRBOkVCRUYxOjEyMzQ0ODA5OjEyOTg5NjNDOjY5NkU5QjA0IiwidmlzaXRvcl9pZCI6IjU1OTA4OTQ5OTk4MzA5NjA5MDAiLCJyZWdpb25fZWRnZSI6InNlYSIsInJlZ2lvbl9yZW5kZXIiOiJzZWEifQ== |
| visitor-hmac | 121351793d0bea22f9f37d610a6e0fa6d8208b2eb6515065e004bc4246bc6058 |
| hovercard-subject-tag | issue:3668337376 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cpplint/cpplint/409/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e7c694166da8cb8e72472c1a57fecb5729258c91aaaf91fa6404d0890e106990/cpplint/cpplint/issues/409 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e7c694166da8cb8e72472c1a57fecb5729258c91aaaf91fa6404d0890e106990/cpplint/cpplint/issues/409 |
| og:image:alt | In Node.js, we have this code that triggers the readability/casting error: typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)(void); https://github.com/nodejs/node/blob/6706b22e350490... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | targos |
| hostname | github.com |
| expected-hostname | github.com |
| None | fdad15fd2ad43212aa8b8be5f2c2725550f8374ceeeb154a999ad9145b43f3f7 |
| turbo-cache-control | no-preview |
| go-import | github.com/cpplint/cpplint git https://github.com/cpplint/cpplint.git |
| octolytics-dimension-user_id | 23239423 |
| octolytics-dimension-user_login | cpplint |
| octolytics-dimension-repository_id | 47154941 |
| octolytics-dimension-repository_nwo | cpplint/cpplint |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 47154941 |
| octolytics-dimension-repository_network_root_nwo | cpplint/cpplint |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 27b23bc056eb973d350fc95afc848757edb9e7a9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width