• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/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)/../)
7directories="src test/cctest test/unittests"
8
9for directory in $directories; do
10  headers=$(find "$v8_root/$directory" -name '*.h' -not -name '*-inl.h')
11  for header in $headers; do
12    inline_header_include=$(grep '#include ".*-inl.h"' "$header")
13    if [ -n "$inline_header_include" ]; then
14      echo "The following non-inline header seems to include an inline header:"
15      echo "  Header : $header"
16      echo "  Include: $inline_header_include"
17      echo
18    fi
19  done
20done
21
22echo "Kthxbye."
23