diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-03-15 04:29:04 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-03-15 04:29:04 +0000 |
commit | fb6b25b5e4cf09cf971f83d20a6b6eea9f04842c (patch) | |
tree | 122cd4b3e2604249f5e838a6e41abe2a032bea64 /clang/lib/Format/FormatToken.h | |
parent | e3bfdc4e14bedf433b838963d6936dcc2fceb511 (diff) | |
download | bcm5719-llvm-fb6b25b5e4cf09cf971f83d20a6b6eea9f04842c.tar.gz bcm5719-llvm-fb6b25b5e4cf09cf971f83d20a6b6eea9f04842c.zip |
[C++11] Add 'override' keyword to virtual methods that override their base class.
llvm-svn: 203999
Diffstat (limited to 'clang/lib/Format/FormatToken.h')
-rw-r--r-- | clang/lib/Format/FormatToken.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/clang/lib/Format/FormatToken.h b/clang/lib/Format/FormatToken.h index 8f9a5431318..04587244c37 100644 --- a/clang/lib/Format/FormatToken.h +++ b/clang/lib/Format/FormatToken.h @@ -432,17 +432,16 @@ public: CommaSeparatedList(const FormatStyle &Style) : TokenRole(Style), HasNestedBracedList(false) {} - virtual void precomputeFormattingInfos(const FormatToken *Token); + void precomputeFormattingInfos(const FormatToken *Token) override; - virtual unsigned formatAfterToken(LineState &State, - ContinuationIndenter *Indenter, - bool DryRun); + unsigned formatAfterToken(LineState &State, ContinuationIndenter *Indenter, + bool DryRun) override; - virtual unsigned formatFromToken(LineState &State, - ContinuationIndenter *Indenter, bool DryRun); + unsigned formatFromToken(LineState &State, ContinuationIndenter *Indenter, + bool DryRun) override; /// \brief Adds \p Token as the next comma to the \c CommaSeparated list. - virtual void CommaFound(const FormatToken *Token) { Commas.push_back(Token); } + void CommaFound(const FormatToken *Token) override { Commas.push_back(Token);} private: /// \brief A struct that holds information on how to format a given list with |