1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby/3/attr
卜部昌平 c37a357c13 include what you use.
This reverts commit 443389effc.
This reverts commit d94960f22e.

Inclusion of header files must be explicit.  Every file shall directly
include what is necessary.

https://github.com/include-what-you-use/include-what-you-use says:

> When every file includes what it uses, then it is possible to edit any
> file and remove unused headers, without fear of accidentally breaking
> the upwards dependencies of that file. It also becomes easy to
> automatically track and update dependencies in the source code.

Though we don't use iwyu itself, the principle quoted above is a good
thing that we can agree.

Now that include guards were added to every and all of the headers
inside of our project this changeset does not increase compile time, at
least on my machine.
2020-04-13 16:06:00 +09:00
..
alloc_size.h include what you use. 2020-04-13 16:06:00 +09:00
artificial.h include what you use. 2020-04-13 16:06:00 +09:00
cold.h include what you use. 2020-04-13 16:06:00 +09:00
const.h include what you use. 2020-04-13 16:06:00 +09:00
constexpr.h include what you use. 2020-04-13 16:06:00 +09:00
deprecated.h include what you use. 2020-04-13 16:06:00 +09:00
diagnose_if.h include what you use. 2020-04-13 16:06:00 +09:00
enum_extensibility.h include what you use. 2020-04-13 16:06:00 +09:00
error.h include what you use. 2020-04-13 16:06:00 +09:00
flag_enum.h include what you use. 2020-04-13 16:06:00 +09:00
forceinline.h include what you use. 2020-04-13 16:06:00 +09:00
format.h include what you use. 2020-04-13 16:06:00 +09:00
maybe_unused.h include what you use. 2020-04-13 16:06:00 +09:00
noalias.h add #include guard hack 2020-04-13 16:06:00 +09:00
nodiscard.h include what you use. 2020-04-13 16:06:00 +09:00
noexcept.h include what you use. 2020-04-13 16:06:00 +09:00
noinline.h include what you use. 2020-04-13 16:06:00 +09:00
nonnull.h include what you use. 2020-04-13 16:06:00 +09:00
noreturn.h include what you use. 2020-04-13 16:06:00 +09:00
pure.h include what you use. 2020-04-13 16:06:00 +09:00
restrict.h include what you use. 2020-04-13 16:06:00 +09:00
returns_nonnull.h include what you use. 2020-04-13 16:06:00 +09:00
warning.h include what you use. 2020-04-13 16:06:00 +09:00
weakref.h include what you use. 2020-04-13 16:06:00 +09:00