From 24ebe454f254beaab7e6d6a8e3265623741b5149 Mon Sep 17 00:00:00 2001 From: Tobias Tebbi Date: Tue, 24 Jul 2018 14:14:14 +0200 Subject: [PATCH] [iwyu] enable header include checks for torque This also fixes all resulting failures. Bug: v8:7965 Change-Id: I5451cdd3a3ec48c708107a22445808c268efe861 Reviewed-on: https://chromium-review.googlesource.com/1148336 Commit-Queue: Tobias Tebbi Reviewed-by: Clemens Hammacher Cr-Commit-Position: refs/heads/master@{#54643} --- src/torque/global-context.h | 2 ++ src/torque/scope.h | 2 ++ src/torque/types.h | 1 + tools/generate-header-include-checks.py | 1 - 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/torque/global-context.h b/src/torque/global-context.h index 1e1ae2317a..33573f7175 100644 --- a/src/torque/global-context.h +++ b/src/torque/global-context.h @@ -17,6 +17,8 @@ namespace torque { class GlobalContext; class Scope; class TypeOracle; +class Builtin; +class Label; class Module { public: diff --git a/src/torque/scope.h b/src/torque/scope.h index 9b1e169aaf..21438da8fe 100644 --- a/src/torque/scope.h +++ b/src/torque/scope.h @@ -17,6 +17,8 @@ namespace internal { namespace torque { class ScopeChain; +class Variable; +class Declarable; class Scope { public: diff --git a/src/torque/types.h b/src/torque/types.h index f1b6cd9c7e..490eeb78b6 100644 --- a/src/torque/types.h +++ b/src/torque/types.h @@ -34,6 +34,7 @@ static const char* const CONST_FLOAT64_TYPE_STRING = "constexpr float64"; class Label; class Value; +class Module; class TypeBase { public: diff --git a/tools/generate-header-include-checks.py b/tools/generate-header-include-checks.py index a5024720a5..95429b22e0 100755 --- a/tools/generate-header-include-checks.py +++ b/tools/generate-header-include-checks.py @@ -122,7 +122,6 @@ AUTO_EXCLUDE = [ ] AUTO_EXCLUDE_PATTERNS = [ 'src/base/atomicops_internals_.*', - 'src/torque/.*', ] + [ # platform-specific headers '\\b{}\\b'.format(p) for p in