xref: /third_party/node/deps/v8/tools/check-inline-includes.sh (revision 1cb0ef41)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/deps/v8/tools/
11cb0ef41Sopenharmony_ci#!/bin/bash
21cb0ef41Sopenharmony_ci# Copyright 2015 the V8 project authors. All rights reserved.
31cb0ef41Sopenharmony_ci# Use of this source code is governed by a BSD-style license that can be
41cb0ef41Sopenharmony_ci# found in the LICENSE file.
51cb0ef41Sopenharmony_ci
61cb0ef41Sopenharmony_civ8_root=$(readlink -f $(dirname $BASH_SOURCE)/../)
71cb0ef41Sopenharmony_cidirectories="src test/cctest test/unittests"
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_cifor directory in $directories; do
101cb0ef41Sopenharmony_ci  headers=$(find "$v8_root/$directory" -name '*.h' -not -name '*-inl.h')
111cb0ef41Sopenharmony_ci  for header in $headers; do
121cb0ef41Sopenharmony_ci    inline_header_include=$(grep '#include ".*-inl.h"' "$header")
131cb0ef41Sopenharmony_ci    if [ -n "$inline_header_include" ]; then
141cb0ef41Sopenharmony_ci      echo "The following non-inline header seems to include an inline header:"
151cb0ef41Sopenharmony_ci      echo "  Header : $header"
161cb0ef41Sopenharmony_ci      echo "  Include: $inline_header_include"
171cb0ef41Sopenharmony_ci      echo
181cb0ef41Sopenharmony_ci    fi
191cb0ef41Sopenharmony_ci  done
201cb0ef41Sopenharmony_cidone
211cb0ef41Sopenharmony_ci
221cb0ef41Sopenharmony_ciecho "Kthxbye."
23

Indexes created Thu Nov 07 10:32:03 CST 2024