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:
Jan Lindemann 2017-12-09 23:16:19 +01:00
parent ba47b092e9
commit 2634246b07
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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"/>.

View File

@ -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