Skip to content

Commit

Permalink
Don't make class SementicContext::Empty final.
Browse files Browse the repository at this point in the history
The class does not implement the pure virtual methods so can
not be considered 'final'. Clang 10 and 11 complain about this.

Context: chipsalliance/Surelog#3081
Signed-off-by: Henner Zeller <h.zeller@acm.org>
  • Loading branch information
hzeller committed Jul 6, 2022
1 parent 82b0af7 commit 2fd7146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/Cpp/runtime/src/atn/SemanticContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ namespace atn {
return !operator==(lhs, rhs);
}

class ANTLR4CPP_PUBLIC SemanticContext::Empty final : public SemanticContext{
class ANTLR4CPP_PUBLIC SemanticContext::Empty : public SemanticContext{
public:
/**
* The default {@link SemanticContext}, which is semantically equivalent to
Expand Down

0 comments on commit 2fd7146

Please sign in to comment.