blob: 536afb1dd4df9cdec6a81dc208dca2be9f244854 [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001#!/bin/bash
2# Copyright 2015 the V8 project authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6v8_root=$(readlink -f $(dirname $BASH_SOURCE)/../)
7headers=$(find "$v8_root/src" -name '*.h' -not -name '*-inl.h')
8
9for header in $headers; do
10 inline_header_include=$(grep '#include ".*-inl.h"' "$header")
11 if [ -n "$inline_header_include" ]; then
12 echo "The following non-inline header seems to include an inline header:"
13 echo " Header : $header"
14 echo " Include: $inline_header_include"
15 echo
16 fi
17done
18
19echo "Kthxbye."