Title: build/include_what_you_use report missing c++ header for c files · Issue #399 · cpplint/cpplint · GitHub
Open Graph Title: build/include_what_you_use report missing c++ header for c files · Issue #399 · cpplint/cpplint
X Title: build/include_what_you_use report missing c++ header for c files · Issue #399 · cpplint/cpplint
Description: I run cpplint on some c files and get test.c:4: Add #include
Open Graph Description: I run cpplint on some c files and get test.c:4: Add #include
X Description: I run cpplint on some c files and get test.c:4: Add #include <cstdio> for printf [build/include_what_you_use] [4]. This error should not be posted as <cstdio> is c++ lib and I already p...
Opengraph URL: https://github.com/cpplint/cpplint/issues/399
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"build/include_what_you_use report missing c++ header for c files","articleBody":"I run cpplint on some c files and get `test.c:4: Add #include \u003ccstdio\u003e for printf [build/include_what_you_use] [4]`. This error should not be posted as `\u003ccstdio\u003e` is c++ lib and I already put `#include \u003cstdio.h\u003e` in the file. \nI find [Skip C++-specific warnings for C code](https://github.com/cpplint/cpplint/issues/71) but adding `// LINT_C_FILE` doesn't work :( ","author":{"url":"https://github.com/A-lexisL","@type":"Person","name":"A-lexisL"},"datePublished":"2025-10-19T15:07:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/399/cpplint/issues/399"}
| 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:039a5931-3916-e68f-30d8-8ddcfe720630 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9250:2E6996:12B79E8B:131989BD:696E9C52 |
| html-safe-nonce | 28b75d49d11d1837b3f00d8da80a838d4bbb9fcad4d6599be325e828a1b62a4f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjUwOjJFNjk5NjoxMkI3OUU4QjoxMzE5ODlCRDo2OTZFOUM1MiIsInZpc2l0b3JfaWQiOiI2NTczNzY2NjI0NDk2NDkxNjAyIiwicmVnaW9uX2VkZ2UiOiJzZWEiLCJyZWdpb25fcmVuZGVyIjoic2VhIn0= |
| visitor-hmac | d641892a9dca8a029845ee482dbfc59cb5f0c2b7d04389cf50e44d5fba4a5e59 |
| hovercard-subject-tag | issue:3530155559 |
| 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/399/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5e93a4136ce907e41a7bdebd1688a9cf71ce39db4a34b878b83f629e7b724f8b/cpplint/cpplint/issues/399 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5e93a4136ce907e41a7bdebd1688a9cf71ce39db4a34b878b83f629e7b724f8b/cpplint/cpplint/issues/399 |
| og:image:alt | I run cpplint on some c files and get test.c:4: Add #include |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | A-lexisL |
| 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