We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddef82a commit c50280fCopy full SHA for c50280f
lib/AST/ASTPrinter.cpp
@@ -977,7 +977,8 @@ void PrintAST::printAttributes(const Decl *D) {
977
!VD->getAttrs().hasAttribute<FinalAttr>() &&
978
// Don't print a redundant 'final' if printing a 'let' or 'static' decl.
979
!(VarD && VarD->isLet()) &&
980
- getCorrectStaticSpelling(D) != StaticSpellingKind::KeywordStatic) {
+ getCorrectStaticSpelling(D) != StaticSpellingKind::KeywordStatic &&
981
+ VD->getKind() != DeclKind::Accessor) {
982
Printer.printAttrName("final");
983
Printer << " ";
984
}
0 commit comments