specific_include_rules = {
".*\.h": [
- # Note that src/v8.h is the top header for some .cc files, it shouldn't be
- # included in any .h files though. In the long run we should make src/v8.h
- # act like any normal header file, instead of a grab-bag include.
+ # Note that src/v8.h by now is a regular header file, it doesn't provide
+ # any special declarations besides the V8 class. There should be no need
+ # for including it in any .h files though. This rule is just a reminder,
+ # and can be removed once the dust has settled.
"-src/v8.h",
],
"d8\.cc": [
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-//
-// Top include for all V8 .cc files.
-//
-
#ifndef V8_V8_H_
#define V8_V8_H_
+#include "include/v8.h"
+#include "src/allocation.h"
+
#if defined(GOOGLE3) || defined(DCHECK_ALWAYS_ON)
// Google3 and Chromium special flag handling.
#if defined(DEBUG) && defined(NDEBUG)
#error both DEBUG and NDEBUG are set
#endif
-// Basic includes
-#include "include/v8.h"
-#include "src/allocation.h"
-
-// Objects
-#include "src/objects-inl.h"
-
namespace v8 {
namespace internal {