Commit 532c9052 authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[iwyu] Extend inline include checking to tests.

R=clemensh@chromium.org

Change-Id: I4e2108beee792e54d4ff54c36fd326a058272b73
Reviewed-on: https://chromium-review.googlesource.com/657179Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47919}
parent 3fcf9171
......@@ -7,7 +7,7 @@
#include "src/frames-inl.h"
#include "src/property-descriptor.h"
#include "src/utils.h"
#include "src/wasm/wasm-objects.h"
#include "src/wasm/wasm-objects-inl.h"
#include "test/cctest/cctest.h"
#include "test/cctest/compiler/value-helper.h"
......
......@@ -4,6 +4,8 @@
#include "test/cctest/wasm/wasm-run-utils.h"
#include "src/wasm/wasm-objects-inl.h"
namespace v8 {
namespace internal {
namespace wasm {
......
......@@ -29,7 +29,7 @@
#include "src/wasm/wasm-interpreter.h"
#include "src/wasm/wasm-js.h"
#include "src/wasm/wasm-module.h"
#include "src/wasm/wasm-objects-inl.h"
#include "src/wasm/wasm-objects.h"
#include "src/wasm/wasm-opcodes.h"
#include "src/zone/accounting-allocator.h"
#include "src/zone/zone.h"
......
......@@ -4,9 +4,11 @@
# found in the LICENSE file.
v8_root=$(readlink -f $(dirname $BASH_SOURCE)/../)
headers=$(find "$v8_root/src" -name '*.h' -not -name '*-inl.h')
directories="src test/cctest test/unittests"
for header in $headers; do
for directory in $directories; do
headers=$(find "$v8_root/$directory" -name '*.h' -not -name '*-inl.h')
for header in $headers; do
inline_header_include=$(grep '#include ".*-inl.h"' "$header")
if [ -n "$inline_header_include" ]; then
echo "The following non-inline header seems to include an inline header:"
......@@ -14,6 +16,7 @@ for header in $headers; do
echo " Include: $inline_header_include"
echo
fi
done
done
echo "Kthxbye."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment