Skip to content

Commit 2fd7146

Browse files
committed
Don't make class SementicContext::Empty final.
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 <[email protected]>
1 parent 82b0af7 commit 2fd7146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/Cpp/runtime/src/atn/SemanticContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ namespace atn {
9292
return !operator==(lhs, rhs);
9393
}
9494

95-
class ANTLR4CPP_PUBLIC SemanticContext::Empty final : public SemanticContext{
95+
class ANTLR4CPP_PUBLIC SemanticContext::Empty : public SemanticContext{
9696
public:
9797
/**
9898
* The default {@link SemanticContext}, which is semantically equivalent to

0 commit comments

Comments
 (0)