Add missing override keyword to virtual functions
Add missing override markers to the following functions of the C++ runtime: - TokensStartState::getStateType() - TagChunk::toString() - TextChunk::toString() The missing markers made builds against the API with -Wsuggest-override choke.
This commit is contained in:
parent
ba47b092e9
commit
2634246b07
|
@ -14,7 +14,7 @@ namespace atn {
|
|||
class ANTLR4CPP_PUBLIC TokensStartState final : public DecisionState {
|
||||
|
||||
public:
|
||||
virtual size_t getStateType();
|
||||
virtual size_t getStateType() override;
|
||||
};
|
||||
|
||||
} // namespace atn
|
||||
|
|
|
@ -70,7 +70,7 @@ namespace pattern {
|
|||
/// are returned in the form {@code label:tag}, and unlabeled tags are
|
||||
/// returned as just the tag name.
|
||||
/// </summary>
|
||||
virtual std::string toString();
|
||||
virtual std::string toString() override;
|
||||
|
||||
private:
|
||||
/// This is the backing field for <seealso cref="#getTag"/>.
|
||||
|
|
|
@ -43,7 +43,7 @@ namespace pattern {
|
|||
/// The implementation for <seealso cref="TextChunk"/> returns the result of
|
||||
/// <seealso cref="#getText()"/> in single quotes.
|
||||
/// </summary>
|
||||
virtual std::string toString();
|
||||
virtual std::string toString() override;
|
||||
};
|
||||
|
||||
} // namespace pattern
|
||||
|
|
Loading…
Reference in New Issue