Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directly include system headers #461

Merged
merged 5 commits into from
Jun 19, 2024
Merged

Conversation

MichaelChirico
Copy link
Contributor

@MichaelChirico MichaelChirico commented Jun 19, 2024

Found by clang-tidy:

https://clang.llvm.org/extra/clang-tidy/checks/misc/include-cleaner.html

  • cstddef --> size_t
  • cstdio --> snprintf()
  • cctype --> toupper()
  • string --> std::string()

There are several other findings related to libuv that I'm omitting here e.g.

no header providing "uv_fs_req_cleanup" is directly included

As well as ones that are really not standard for R packages:

no header providing "NULL" is directly included

Happy to provide the full output if requested; sticking to a more minimal version of standard system headers here for now.

MichaelChirico and others added 5 commits June 19, 2024 08:00
Found by `clang-tidy`:

https://clang.llvm.org/extra/clang-tidy/checks/misc/include-cleaner.html

 - cctype --> toupper()
 - cstddef --> size_t

There are several other findings related to `libuv` that I'm omitting here e.g.

> no header providing "uv_fs_req_cleanup" is directly included

As well as ones that are really not standard for R packages:

> no header providing "NULL" is directly included

Happy to provide the full output if requested; sticking to a more minimal version of standard system headers here for now.
@gaborcsardi gaborcsardi merged commit 714990b into r-lib:main Jun 19, 2024
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants