mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-15 20:01:22 +00:00
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:
parent
bcf37549c8
commit
ce33d42b41
@ -23,6 +23,8 @@ namespace ast {
|
|||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
struct Cloneable : public Castable<Cloneable, Node> {
|
struct Cloneable : public Castable<Cloneable, Node> {
|
||||||
|
Cloneable() : Base(Source{}) {}
|
||||||
|
|
||||||
Cloneable* a = nullptr;
|
Cloneable* a = nullptr;
|
||||||
Cloneable* b = nullptr;
|
Cloneable* b = nullptr;
|
||||||
Cloneable* c = nullptr;
|
Cloneable* c = nullptr;
|
||||||
|
@ -21,8 +21,6 @@ TINT_INSTANTIATE_CLASS_ID(tint::ast::Node);
|
|||||||
namespace tint {
|
namespace tint {
|
||||||
namespace ast {
|
namespace ast {
|
||||||
|
|
||||||
Node::Node() = default;
|
|
||||||
|
|
||||||
Node::Node(const Source& source) : source_(source) {}
|
Node::Node(const Source& source) : source_(source) {}
|
||||||
|
|
||||||
Node::Node(Node&&) = default;
|
Node::Node(Node&&) = default;
|
||||||
|
@ -61,8 +61,6 @@ class Node : public Castable<Node> {
|
|||||||
std::string str() const;
|
std::string str() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// Create a new node
|
|
||||||
Node();
|
|
||||||
/// Create a new node
|
/// Create a new node
|
||||||
/// @param source the input source for the node
|
/// @param source the input source for the node
|
||||||
explicit Node(const Source& source);
|
explicit Node(const Source& source);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user