зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1870251 - Part 14: Apply include-what-you-use. r=allstarschh
Apply include-what-you-use to clean-up `#include` statements. Depends on D196571 Differential Revision: https://phabricator.services.mozilla.com/D196572
This commit is contained in:
Родитель
d88383019c
Коммит
c7b9cacf73
|
@ -48,10 +48,10 @@
|
|||
#include "gc/AllocKind.h"
|
||||
#include "gc/Barrier.h"
|
||||
#include "gc/GCEnum.h"
|
||||
#include "gc/Tracer.h"
|
||||
#include "js/AllocPolicy.h"
|
||||
#include "js/CallArgs.h"
|
||||
#include "js/CallNonGenericMethod.h"
|
||||
#include "js/CharacterEncoding.h"
|
||||
#include "js/Class.h"
|
||||
#include "js/Conversions.h"
|
||||
#include "js/ErrorReport.h"
|
||||
|
@ -67,7 +67,6 @@
|
|||
#include "js/RootingAPI.h"
|
||||
#include "js/TracingAPI.h"
|
||||
#include "js/Value.h"
|
||||
#include "js/ValueArray.h"
|
||||
#include "util/Text.h"
|
||||
#include "vm/ArrayObject.h"
|
||||
#include "vm/BytecodeUtil.h"
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/CheckedInt.h"
|
||||
#include "mozilla/EnumSet.h"
|
||||
#include "mozilla/FloatingPoint.h"
|
||||
#include "mozilla/Likely.h"
|
||||
#include "mozilla/Maybe.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
@ -53,7 +53,6 @@
|
|||
#include "js/PropertySpec.h"
|
||||
#include "js/RootingAPI.h"
|
||||
#include "js/Value.h"
|
||||
#include "proxy/DeadObjectProxy.h"
|
||||
#include "util/StringBuffer.h"
|
||||
#include "vm/BigIntType.h"
|
||||
#include "vm/BytecodeUtil.h"
|
||||
|
@ -65,7 +64,6 @@
|
|||
#include "vm/PlainObject.h"
|
||||
#include "vm/StringType.h"
|
||||
|
||||
#include "vm/JSContext-inl.h"
|
||||
#include "vm/JSObject-inl.h"
|
||||
#include "vm/NativeObject-inl.h"
|
||||
#include "vm/ObjectOperations-inl.h"
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include "builtin/temporal/Instant.h"
|
||||
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/Casting.h"
|
||||
#include "mozilla/CheckedInt.h"
|
||||
#include "mozilla/FloatingPoint.h"
|
||||
#include "mozilla/Maybe.h"
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
#ifndef builtin_temporal_PlainDate_h
|
||||
#define builtin_temporal_PlainDate_h
|
||||
|
||||
#include "mozilla/Assertions.h"
|
||||
|
||||
#include <initializer_list>
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -14,13 +16,17 @@
|
|||
#include "builtin/temporal/PlainDateTime.h"
|
||||
#include "builtin/temporal/TemporalTypes.h"
|
||||
#include "builtin/temporal/Wrapped.h"
|
||||
#include "js/RootingAPI.h"
|
||||
#include "js/TypeDecls.h"
|
||||
#include "js/Value.h"
|
||||
#include "vm/NativeObject.h"
|
||||
|
||||
class JS_PUBLIC_API JSTracer;
|
||||
|
||||
namespace js {
|
||||
struct ClassSpec;
|
||||
}
|
||||
class PlainObject;
|
||||
} // namespace js
|
||||
|
||||
namespace js::temporal {
|
||||
|
||||
|
|
|
@ -7,11 +7,14 @@
|
|||
#ifndef builtin_temporal_PlainDateTime_h
|
||||
#define builtin_temporal_PlainDateTime_h
|
||||
|
||||
#include "mozilla/Assertions.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "builtin/temporal/Calendar.h"
|
||||
#include "builtin/temporal/TemporalTypes.h"
|
||||
#include "builtin/temporal/Wrapped.h"
|
||||
#include "js/RootingAPI.h"
|
||||
#include "js/TypeDecls.h"
|
||||
#include "js/Value.h"
|
||||
#include "vm/NativeObject.h"
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#include "builtin/temporal/Calendar.h"
|
||||
#include "builtin/temporal/PlainDate.h"
|
||||
#include "builtin/temporal/PlainDateTime.h"
|
||||
#include "builtin/temporal/PlainTime.h"
|
||||
#include "builtin/temporal/PlainYearMonth.h"
|
||||
#include "builtin/temporal/Temporal.h"
|
||||
#include "builtin/temporal/TemporalFields.h"
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
#include "jspubtd.h"
|
||||
#include "NamespaceImports.h"
|
||||
|
||||
#include "builtin/temporal/Calendar.h"
|
||||
#include "builtin/temporal/Duration.h"
|
||||
#include "builtin/temporal/Instant.h"
|
||||
#include "builtin/temporal/PlainDate.h"
|
||||
|
@ -33,7 +32,6 @@
|
|||
#include "builtin/temporal/TemporalUnit.h"
|
||||
#include "builtin/temporal/TimeZone.h"
|
||||
#include "builtin/temporal/ToString.h"
|
||||
#include "builtin/temporal/Wrapped.h"
|
||||
#include "builtin/temporal/ZonedDateTime.h"
|
||||
#include "ds/IdValuePair.h"
|
||||
#include "gc/AllocKind.h"
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
#include "builtin/temporal/TemporalRoundingMode.h"
|
||||
#include "builtin/temporal/TemporalUnit.h"
|
||||
#include "js/RootingAPI.h"
|
||||
#include "js/TypeDecls.h"
|
||||
#include "vm/NativeObject.h"
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
#include "js/ComparisonOperators.h"
|
||||
#include "js/ErrorReport.h"
|
||||
#include "js/friend/ErrorMessages.h"
|
||||
#include "js/GCAPI.h"
|
||||
#include "js/GCVector.h"
|
||||
#include "js/Id.h"
|
||||
#include "js/Printer.h"
|
||||
|
@ -49,7 +48,6 @@
|
|||
#include "vm/SymbolType.h"
|
||||
|
||||
#include "vm/JSAtomUtils-inl.h"
|
||||
#include "vm/JSObject-inl.h"
|
||||
#include "vm/ObjectOperations-inl.h"
|
||||
|
||||
using namespace js;
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
#include "js/PropertySpec.h"
|
||||
#include "js/RootingAPI.h"
|
||||
#include "js/TypeDecls.h"
|
||||
#include "js/Value.h"
|
||||
#include "vm/DateTime.h"
|
||||
#include "vm/GlobalObject.h"
|
||||
#include "vm/JSAtomState.h"
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include "js/TypeDecls.h"
|
||||
|
||||
class JSLinearString;
|
||||
class JS_PUBLIC_API JSTracer;
|
||||
|
||||
namespace js::temporal {
|
||||
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
#include "js/CallArgs.h"
|
||||
#include "js/CallNonGenericMethod.h"
|
||||
#include "js/Class.h"
|
||||
#include "js/ComparisonOperators.h"
|
||||
#include "js/Date.h"
|
||||
#include "js/ErrorReport.h"
|
||||
#include "js/ForOfIterator.h"
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
#include "builtin/temporal/ZonedDateTime.h"
|
||||
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/CheckedInt.h"
|
||||
#include "mozilla/FloatingPoint.h"
|
||||
#include "mozilla/Maybe.h"
|
||||
|
||||
#include <cstdlib>
|
||||
|
|
|
@ -15,12 +15,13 @@
|
|||
#include "builtin/temporal/Instant.h"
|
||||
#include "builtin/temporal/TemporalTypes.h"
|
||||
#include "builtin/temporal/TimeZone.h"
|
||||
#include "builtin/temporal/Wrapped.h"
|
||||
#include "js/RootingAPI.h"
|
||||
#include "js/TypeDecls.h"
|
||||
#include "js/Value.h"
|
||||
#include "vm/NativeObject.h"
|
||||
|
||||
class JS_PUBLIC_API JSTracer;
|
||||
|
||||
namespace js {
|
||||
struct ClassSpec;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче