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/backward
卜部昌平 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
..
2 include what you use. 2020-04-13 16:06:00 +09:00
classext.h add #include guard hack 2020-04-13 16:06:00 +09:00
cxxanyargs.hpp add #include guard hack 2020-04-13 16:06:00 +09:00
rubyio.h add #include guard hack 2020-04-13 16:06:00 +09:00
rubysig.h add #include guard hack 2020-04-13 16:06:00 +09:00
st.h add #include guard hack 2020-04-13 16:06:00 +09:00
util.h add #include guard hack 2020-04-13 16:06:00 +09:00