forked from OSchip/llvm-project
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:
parent
ab4ebb42f9
commit
58ed9c9167
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue