Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
glr2.cc: example: address Clang warnings
ast.hh:24:7: error: 'Node' has no out-of-line virtual method definitions; its vtable will be emitted in every translation unit [-Werror,-Wweak-vtables] class Node ^ ast.hh:57:7: error: 'Nterm' has no out-of-line virtual method definitions; its vtable will be emitted in every translation unit [-Werror,-Wweak-vtables] class Nterm : public Node ^ ast.hh:102:7: error: 'Term' has no out-of-line virtual method definitions; its vtable will be emitted in every translation unit [-Werror,-Wweak-vtables] class Term : public Node ^ * examples/c++/glr/ast.hh: Define the destructors out of the class definition. This does not change anything, it is still in the header, but that does pacify clang.
- Loading branch information