Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/AST/DeclPrinter.cpp | ||
---|---|---|
1010 | isEffectivelyFinal returns true for I don't think we want to print struct X final {} in that case. Probably want to replicate the check for FinalAttr instead? |
clang/lib/AST/DeclPrinter.cpp | ||
---|---|---|
1010 | Agreed. Would probably make sense to add a bool hasFinalAttribute() const to CXXRecordDecl? |
clang/lib/AST/DeclPrinter.cpp | ||
---|---|---|
1010 | I'm not sure such a method pays for itself, the abstraction it might provides over hasAttr() is:
Given that, I think it's probably best here just to inline the logic, but I don't feel strongly. |
isEffectivelyFinal returns true for
struct X { ~X() final; }
I don't think we want to print struct X final {} in that case.
Probably want to replicate the check for FinalAttr instead?