Просмотр исходного кода

Remove cstdint from enum_base.h (#2533)

Enums are generally using uint8_t right now. enum_base.h doesn't use cstdint directly, and direct includes are preferred.
Jon Ross-Perkins 3 лет назад
Родитель
Сommit
b936bf9e04

+ 0 - 1
toolchain/common/enum_base.h

@@ -5,7 +5,6 @@
 #ifndef CARBON_TOOLCHAIN_COMMON_ENUM_BASE_H_
 #define CARBON_TOOLCHAIN_COMMON_ENUM_BASE_H_
 
-#include <cstdint>
 #include <type_traits>
 
 #include "common/ostream.h"

+ 2 - 0
toolchain/parser/parse_node_kind.h

@@ -5,6 +5,8 @@
 #ifndef CARBON_TOOLCHAIN_PARSER_PARSE_NODE_KIND_H_
 #define CARBON_TOOLCHAIN_PARSER_PARSE_NODE_KIND_H_
 
+#include <cstdint>
+
 #include "toolchain/common/enum_base.h"
 
 namespace Carbon {

+ 2 - 0
toolchain/parser/parser_state.h

@@ -5,6 +5,8 @@
 #ifndef CARBON_TOOLCHAIN_PARSER_PARSER_STATE_H_
 #define CARBON_TOOLCHAIN_PARSER_PARSER_STATE_H_
 
+#include <cstdint>
+
 #include "toolchain/common/enum_base.h"
 
 namespace Carbon {

+ 2 - 0
toolchain/semantics/semantics_builtin_kind.h

@@ -5,6 +5,8 @@
 #ifndef CARBON_TOOLCHAIN_SEMANTICS_SEMANTICS_BUILTIN_KIND_H_
 #define CARBON_TOOLCHAIN_SEMANTICS_SEMANTICS_BUILTIN_KIND_H_
 
+#include <cstdint>
+
 #include "toolchain/common/enum_base.h"
 
 namespace Carbon {

+ 2 - 0
toolchain/semantics/semantics_node_kind.h

@@ -5,6 +5,8 @@
 #ifndef CARBON_TOOLCHAIN_SEMANTICS_SEMANTICS_NODE_KIND_H_
 #define CARBON_TOOLCHAIN_SEMANTICS_SEMANTICS_NODE_KIND_H_
 
+#include <cstdint>
+
 #include "toolchain/common/enum_base.h"
 
 namespace Carbon {