Copy/move break invariants (move could be fixed).
Node/Tree should have no public constructors, they're abstract.
Destructor is private to enforce arena allocation.
(Making the constructor of all subclasses private doesn't seem worthwhile)
Paths
| Differential D90163
[Syntax] Disallow invalid Node operations ClosedPublic Authored by sammccall on Oct 26 2020, 8:44 AM.
Details Summary Copy/move break invariants (move could be fixed). (Making the constructor of all subclasses private doesn't seem worthwhile)
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 26 2020, 8:51 AM Closed by commit rGc6a05eb62f2a: [Syntax] Disallow invalid Node operations (authored by sammccall). · Explain WhyOct 27 2020, 12:36 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 300687 clang/include/clang/Tooling/Syntax/Tree.h
|