[PATCH] D128202: [clangd] Include "final" when printing class declaration

2022-07-11 Thread Sam McCall via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG9f57b65a2728: [clangd] Include "final" when printing class declaration (authored by tom-anders, committed by sammccall). Repository: rG LLVM Githu

[PATCH] D128202: [clangd] Include "final" when printing class declaration

2022-06-28 Thread Tom Praschan via Phabricator via cfe-commits
tom-anders updated this revision to Diff 440676. tom-anders added a comment. Check for FinalAttr instead of using isEffectivelyFinal() Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D128202/new/ https://reviews.llvm.org/D128202 Files: clang-tools-

[PATCH] D128202: [clangd] Include "final" when printing class declaration

2022-06-21 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang/lib/AST/DeclPrinter.cpp:1010 + if (D->isEffectivelyFinal()) { + Out << " final"; tom-anders wrote: > sammccall wrote: > > isEffectivelyFinal returns true for > > `struct X { ~X() final; }` > > > > I don'

[PATCH] D128202: [clangd] Include "final" when printing class declaration

2022-06-20 Thread Tom Praschan via Phabricator via cfe-commits
tom-anders added inline comments. Comment at: clang/lib/AST/DeclPrinter.cpp:1010 + if (D->isEffectivelyFinal()) { + Out << " final"; sammccall wrote: > isEffectivelyFinal returns true for > `struct X { ~X() final; }` > > I don't think we want to print `s

[PATCH] D128202: [clangd] Include "final" when printing class declaration

2022-06-20 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang/lib/AST/DeclPrinter.cpp:1010 + if (D->isEffectivelyFinal()) { + Out << " final"; isEffectivelyFinal returns true for `struct X { ~X() final; }` I don't think we want to print `struct X final {}` in that

[PATCH] D128202: [clangd] Include "final" when printing class declaration

2022-06-20 Thread Tom Praschan via Phabricator via cfe-commits
tom-anders created this revision. Herald added subscribers: usaxena95, kadircet, arphaman. Herald added a project: All. tom-anders requested review of this revision. Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov. Herald added projects: clang, clang-tools-extra. Fixes https://github