clang-tidy: [misc-use-override] Slightly tweak the wording of warning.

'final' should really be used with care.

llvm-svn: 213501
This commit is contained in:
Daniel Jasper 2014-07-21 06:06:38 +00:00
parent ab4ebb42f9
commit 58ed9c9167
1 changed files with 5 additions and 5 deletions

View File

@ -71,11 +71,11 @@ void UseOverride::check(const MatchFinder::MatchResult &Result) {
if (!OnlyVirtualSpecified && KeywordCount == 1)
return; // Nothing to do.
DiagnosticBuilder Diag =
diag(Method->getLocation(),
OnlyVirtualSpecified
? "Prefer using 'override' or 'final' instead of 'virtual'"
: "Use exactly one of 'virtual', 'override' and 'final'");
DiagnosticBuilder Diag = diag(
Method->getLocation(),
OnlyVirtualSpecified
? "Prefer using 'override' or 'final' instead of 'virtual'"
: "Use exactly one of 'virtual', 'override' or (rarely) 'final'");
CharSourceRange FileRange = Lexer::makeFileCharRange(
CharSourceRange::getTokenRange(Method->getSourceRange()), Sources,