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
卜部昌平 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
..
arithmetic include what you use. 2020-04-13 16:06:00 +09:00
attr include what you use. 2020-04-13 16:06:00 +09:00
compiler_is add #include guard hack 2020-04-13 16:06:00 +09:00
core include what you use. 2020-04-13 16:06:00 +09:00
has include what you use. 2020-04-13 16:06:00 +09:00
intern add #include guard hack 2020-04-13 16:06:00 +09:00
anyargs.h include what you use. 2020-04-13 16:06:00 +09:00
arithmetic.h add #include guard hack 2020-04-13 16:06:00 +09:00
assume.h include what you use. 2020-04-13 16:06:00 +09:00
cast.h include what you use. 2020-04-13 16:06:00 +09:00
compiler_is.h add #include guard hack 2020-04-13 16:06:00 +09:00
compiler_since.h add #include guard hack 2020-04-13 16:06:00 +09:00
config.h include what you use. 2020-04-13 16:06:00 +09:00
constant_p.h add #include guard hack 2020-04-13 16:06:00 +09:00
core.h add #include guard hack 2020-04-13 16:06:00 +09:00
ctype.h add #include guard hack 2020-04-13 16:06:00 +09:00
dllexport.h add #include guard hack 2020-04-13 16:06:00 +09:00
dosish.h add #include guard hack 2020-04-13 16:06:00 +09:00
error.h add #include guard hack 2020-04-13 16:06:00 +09:00
eval.h add #include guard hack 2020-04-13 16:06:00 +09:00
event.h add #include guard hack 2020-04-13 16:06:00 +09:00
fl_type.h add #include guard hack 2020-04-13 16:06:00 +09:00
gc.h add #include guard hack 2020-04-13 16:06:00 +09:00
glob.h add #include guard hack 2020-04-13 16:06:00 +09:00
globals.h add #include guard hack 2020-04-13 16:06:00 +09:00
interpreter.h add #include guard hack 2020-04-13 16:06:00 +09:00
iterator.h add #include guard hack 2020-04-13 16:06:00 +09:00
memory.h add #include guard hack 2020-04-13 16:06:00 +09:00
method.h add #include guard hack 2020-04-13 16:06:00 +09:00
module.h add #include guard hack 2020-04-13 16:06:00 +09:00
newobj.h add #include guard hack 2020-04-13 16:06:00 +09:00
rgengc.h add #include guard hack 2020-04-13 16:06:00 +09:00
scan_args.h add #include guard hack 2020-04-13 16:06:00 +09:00
special_consts.h add #include guard hack 2020-04-13 16:06:00 +09:00
static_assert.h include what you use. 2020-04-13 16:06:00 +09:00
stdalign.h include what you use. 2020-04-13 16:06:00 +09:00
stdbool.h add #include guard hack 2020-04-13 16:06:00 +09:00
symbol.h add #include guard hack 2020-04-13 16:06:00 +09:00
token_paste.h include what you use. 2020-04-13 16:06:00 +09:00
value.h add #include guard hack 2020-04-13 16:06:00 +09:00
value_type.h add #include guard hack 2020-04-13 16:06:00 +09:00
variable.h add #include guard hack 2020-04-13 16:06:00 +09:00
warning_push.h include what you use. 2020-04-13 16:06:00 +09:00
xmalloc.h add #include guard hack 2020-04-13 16:06:00 +09:00