[PATCH] D141226: [WIP][clangd] support expanding `decltype(expr)`

Vincent Hong via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 8 08:46:57 PST 2023


v1nh1shungry created this revision.
Herald added subscribers: kadircet, arphaman.
Herald added a project: All.
v1nh1shungry requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.

Enable the existing code action `ExpandAutoType` to expand
`decltype(expr)`, e.g.

  decltype(0) i;

will expand to

  int i;


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141226

Files:
  clang-tools-extra/clangd/refactor/tweaks/ExpandAutoType.cpp
  clang-tools-extra/clangd/unittests/tweaks/ExpandAutoTypeTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141226.487197.patch
Type: text/x-patch
Size: 5932 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230108/6de18eeb/attachment.bin>


More information about the cfe-commits mailing list