• Clemens Hammacher's avatar
    [iwyu] Add script to check that headers can be included in isolation · 4b412577
    Clemens Hammacher authored
    The most important point of IWYU (include-what-you-use) is that each
    header includes everything it is using, so that whoever includes that
    header does not need to additionally include other things.
    This CL adds a script which generates files to automatically check this.
    It is automatically invoked during "gclient runhooks" if the
    "check_v8_header_includes" variable is set. This script generates a
    number of .cc files in the "check-header-includes" directory, together
    with a "sources.gni" file which lists all the generated cc files. Each
    file includes one header.
    If additionally the gn args "v8_check_header_includes" is set, this gni
    file is included, and all the generated CC files will be compiled. This
    will detect violations of the aforementioned IWYU rule.
    
    R=titzer@chromium.org, machenbach@chromium.org
    
    Bug: v8:7754, v8:7965
    Change-Id: Id1cf256507052c3a9ea82f8c80ea1c0385457e31
    Reviewed-on: https://chromium-review.googlesource.com/1145199
    Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
    Reviewed-by: 's avatarBen Titzer <titzer@chromium.org>
    Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#54590}
    4b412577
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
custom_deps Loading commit data...
docs Loading commit data...
gni Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.editorconfig Loading commit data...
.git-blame-ignore-revs Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...