Explorar o código

Include Missing Libraries (#2201)

Minor Style: non-auto to auto
micttyl %!s(int64=3) %!d(string=hai) anos
pai
achega
2df87ddacc

+ 1 - 0
toolchain/semantics/BUILD

@@ -29,6 +29,7 @@ cc_library(
     hdrs = ["parse_subtree_consumer.h"],
     deps = [
         "//common:check",
+        "//toolchain/parser:parse_node_kind",
         "//toolchain/parser:parse_tree",
         "@llvm-project//llvm:Support",
     ],

+ 4 - 0
toolchain/semantics/parse_subtree_consumer.cpp

@@ -5,6 +5,10 @@
 #include "toolchain/semantics/parse_subtree_consumer.h"
 
 #include "common/check.h"
+#include "llvm/ADT/None.h"
+#include "llvm/ADT/Optional.h"
+#include "toolchain/parser/parse_node_kind.h"
+#include "toolchain/parser/parse_tree.h"
 
 namespace Carbon {
 

+ 1 - 0
toolchain/semantics/parse_subtree_consumer.h

@@ -8,6 +8,7 @@
 #include <iterator>
 
 #include "llvm/ADT/Optional.h"
+#include "toolchain/parser/parse_node_kind.h"
 #include "toolchain/parser/parse_tree.h"
 
 namespace Carbon {

+ 2 - 1
toolchain/semantics/semantics_ir.h

@@ -5,6 +5,7 @@
 #ifndef CARBON_TOOLCHAIN_SEMANTICS_SEMANTICS_IR_H_
 #define CARBON_TOOLCHAIN_SEMANTICS_SEMANTICS_IR_H_
 
+#include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/SmallVector.h"
 #include "toolchain/parser/parse_tree.h"
 #include "toolchain/semantics/node_store.h"
@@ -24,7 +25,7 @@ class SemanticsIR {
   }
 
   // Prints the node information.
-  void Print(llvm::raw_ostream& out, Semantics::NodeRef node_ref) const;
+  auto Print(llvm::raw_ostream& out, Semantics::NodeRef node_ref) const -> void;
 
  private:
   friend class SemanticsIRFactory;