summaryrefslogtreecommitdiffstats
path: root/include/clang/Lex/Lexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Lex/Lexer.h')
-rw-r--r--include/clang/Lex/Lexer.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/clang/Lex/Lexer.h b/include/clang/Lex/Lexer.h
index af6d8cf750..513eb88e4a 100644
--- a/include/clang/Lex/Lexer.h
+++ b/include/clang/Lex/Lexer.h
@@ -44,7 +44,7 @@ enum ConflictMarkerKind {
/// or buffering/seeking of tokens, only forward lexing is supported. It relies
/// on the specified Preprocessor object to handle preprocessor directives, etc.
class Lexer : public PreprocessorLexer {
- virtual void anchor();
+ void anchor() override;
//===--------------------------------------------------------------------===//
// Constant configuration values for this lexer.
@@ -145,7 +145,7 @@ public:
private:
/// IndirectLex - An indirect call to 'Lex' that can be invoked via
/// the PreprocessorLexer interface.
- void IndirectLex(Token &Result) { Lex(Result); }
+ void IndirectLex(Token &Result) override { Lex(Result); }
public:
/// LexFromRawLexer - Lex a token from a designated raw lexer (one with no
@@ -218,7 +218,9 @@ public:
/// getSourceLocation - Return a source location for the next character in
/// the current file.
- SourceLocation getSourceLocation() { return getSourceLocation(BufferPtr); }
+ SourceLocation getSourceLocation() override {
+ return getSourceLocation(BufferPtr);
+ }
/// \brief Return the current location in the buffer.
const char *getBufferLocation() const { return BufferPtr; }