ast: Remove no-arg constructor from Node

Bug: tint:396
Bug: tint:390
Change-Id: I730738dd6bafa946dc66ee8a15c48b3a3f73e5fc
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/35164
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
Ben Clayton 2020-12-12 13:00:34 +00:00 committed by Commit Bot service account
parent bcf37549c8
commit ce33d42b41
3 changed files with 2 additions and 4 deletions

View File

@ -23,6 +23,8 @@ namespace ast {
namespace {
struct Cloneable : public Castable<Cloneable, Node> {
Cloneable() : Base(Source{}) {}
Cloneable* a = nullptr;
Cloneable* b = nullptr;
Cloneable* c = nullptr;

View File

@ -21,8 +21,6 @@ TINT_INSTANTIATE_CLASS_ID(tint::ast::Node);
namespace tint {
namespace ast {
Node::Node() = default;
Node::Node(const Source& source) : source_(source) {}
Node::Node(Node&&) = default;

View File

@ -61,8 +61,6 @@ class Node : public Castable<Node> {
std::string str() const;
protected:
/// Create a new node
Node();
/// Create a new node
/// @param source the input source for the node
explicit Node(const Source& source);