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 @@ ...@@ -7,7 +7,7 @@
#include "src/frames-inl.h" #include "src/frames-inl.h"
#include "src/property-descriptor.h" #include "src/property-descriptor.h"
#include "src/utils.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/cctest.h"
#include "test/cctest/compiler/value-helper.h" #include "test/cctest/compiler/value-helper.h"
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
#include "test/cctest/wasm/wasm-run-utils.h" #include "test/cctest/wasm/wasm-run-utils.h"
#include "src/wasm/wasm-objects-inl.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
namespace wasm { namespace wasm {
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include "src/wasm/wasm-interpreter.h" #include "src/wasm/wasm-interpreter.h"
#include "src/wasm/wasm-js.h" #include "src/wasm/wasm-js.h"
#include "src/wasm/wasm-module.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/wasm/wasm-opcodes.h"
#include "src/zone/accounting-allocator.h" #include "src/zone/accounting-allocator.h"
#include "src/zone/zone.h" #include "src/zone/zone.h"
......
...@@ -4,16 +4,19 @@ ...@@ -4,16 +4,19 @@
# found in the LICENSE file. # found in the LICENSE file.
v8_root=$(readlink -f $(dirname $BASH_SOURCE)/../) 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
inline_header_include=$(grep '#include ".*-inl.h"' "$header") headers=$(find "$v8_root/$directory" -name '*.h' -not -name '*-inl.h')
if [ -n "$inline_header_include" ]; then for header in $headers; do
echo "The following non-inline header seems to include an inline header:" inline_header_include=$(grep '#include ".*-inl.h"' "$header")
echo " Header : $header" if [ -n "$inline_header_include" ]; then
echo " Include: $inline_header_include" echo "The following non-inline header seems to include an inline header:"
echo echo " Header : $header"
fi echo " Include: $inline_header_include"
echo
fi
done
done done
echo "Kthxbye." 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