[PATCH] D124359: [clangd] Add inlay hints for mutable reference parameters

2022-05-02 Thread Nathan Ridge via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG043e96502408: [clangd] Add inlay hints for mutable reference parameters (authored by upsj, committed by nridge). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org

[PATCH] D124359: [clangd] Add inlay hints for mutable reference parameters

2022-05-02 Thread Tobias Ribizel via Phabricator via cfe-commits
upsj updated this revision to Diff 426372. upsj marked an inline comment as done. upsj added a comment. remove unnecessary annotation Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D124359/new/ https://reviews.llvm.org/D124359 Files: clang-tools-e

[PATCH] D124359: [clangd] Add inlay hints for mutable reference parameters

2022-05-02 Thread Nathan Ridge via Phabricator via cfe-commits
nridge accepted this revision. nridge added a comment. This revision is now accepted and ready to land. Thanks! Final nit: please update the commit message as it's a bit out of date, and then I'll go ahead and merge Comment at: clang-tools-extra/clangd/unittests/InlayHintTest

[PATCH] D124359: [clangd] Add inlay hints for mutable reference parameters

2022-05-02 Thread Tobias Ribizel via Phabricator via cfe-commits
upsj updated this revision to Diff 426346. upsj marked an inline comment as done. upsj added a comment. add test for const ref inlay hint via type alias Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D124359/new/ https://reviews.llvm.org/D124359 Fil

[PATCH] D124359: [clangd] Add inlay hints for mutable reference parameters

2022-05-02 Thread Tobias Ribizel via Phabricator via cfe-commits
upsj updated this revision to Diff 426344. upsj added a comment. right, arcanist doesn't entirely match my git mental model. Here's the (hopefully) complete patch Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D124359/new/ https://reviews.llvm.org/D

[PATCH] D124359: [clangd] Add inlay hints for mutable reference parameters

2022-05-02 Thread Nathan Ridge via Phabricator via cfe-commits
nridge added a comment. Thanks, the changes here look good. Something is strange about the diff though, it's not letting me see the complete changes relative to the baseline, only the incremental changes relative to a previous version (I think this is also why Phabricator's build status says p

[PATCH] D124359: [clangd] Add inlay hints for mutable reference parameters

2022-05-02 Thread Tobias Ribizel via Phabricator via cfe-commits
upsj added a comment. Thanks, on second thought moving the hint to the prefix also makes more sense to me. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D124359/new/ https://reviews.llvm.org/D124359 ___

[PATCH] D124359: [clangd] Add inlay hints for mutable reference parameters

2022-05-02 Thread Tobias Ribizel via Phabricator via cfe-commits
upsj updated this revision to Diff 426343. upsj marked 4 inline comments as done. upsj added a comment. address review comments: Move reference hint to the prefix, test type aliases Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D124359/new/ https://

[PATCH] D124359: [clangd] Add inlay hints for mutable reference parameters

2022-05-01 Thread Nathan Ridge via Phabricator via cfe-commits
nridge requested changes to this revision. nridge added a comment. This revision now requires changes to proceed. Apologies for the slow response here. This generally looks good to me, but I have a couple of suggestions regarding the formatting of the hints and handling type aliases.

[PATCH] D124359: [clangd] Add inlay hints for mutable reference parameters

2022-04-30 Thread Tobias Ribizel via Phabricator via cfe-commits
upsj updated this revision to Diff 426217. upsj added a comment. don't add reference inlay hints for r-value refs Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D124359/new/ https://reviews.llvm.org/D124359 Files: clang-tools-extra/clangd/InlayHin

[PATCH] D124359: [clangd] Add inlay hints for mutable reference parameters

2022-04-29 Thread Tobias Ribizel via Phabricator via cfe-commits
upsj added inline comments. Comment at: clang-tools-extra/clangd/InlayHints.cpp:448-450 +return Type->isReferenceType() && + !Type.getNonReferenceType().isConstQualified() + ? (Type->isLValueReferenceType() ? "&" : "&&") It pro

[PATCH] D124359: [clangd] Add inlay hints for mutable reference parameters

2022-04-27 Thread Tobias Ribizel via Phabricator via cfe-commits
upsj updated this revision to Diff 425432. upsj added a comment. add tests for reference inlay hints Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D124359/new/ https://reviews.llvm.org/D124359 Files: clang-tools-extra/clangd/InlayHints.cpp clan

[PATCH] D124359: [clangd] Add inlay hints for mutable reference parameters

2022-04-26 Thread Nathan Ridge via Phabricator via cfe-commits
nridge added a comment. Thanks for working on this! Could you add some test cases to [InlayHintTests.cpp] to illustrate the new hint please? As in the other patch, uploading the patch with context would also be helpful for review. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D124359/

[PATCH] D124359: [clangd] Add inlay hints for mutable reference parameters

2022-04-25 Thread Tobias Ribizel via Phabricator via cfe-commits
upsj created this revision. upsj added a reviewer: nridge. Herald added subscribers: usaxena95, kadircet, arphaman. Herald added a project: All. upsj requested review of this revision. Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov. Herald added a project: clang-tools-extra. Add a &