[PATCH] D137817: [clangd] Improve action `RemoveUsingNamespace` for user-defined literals

Vincent Hong via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 19 23:44:21 PST 2022


v1nh1shungry updated this revision to Diff 484170.
v1nh1shungry added a comment.

Insert the using-declarations in the outermost `CompoundStmt` instead of
the innermost one. Can reduce some potential rebundancy.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137817/new/

https://reviews.llvm.org/D137817

Files:
  clang-tools-extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp
  clang-tools-extra/clangd/unittests/tweaks/RemoveUsingNamespaceTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137817.484170.patch
Type: text/x-patch
Size: 8104 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221220/214d583c/attachment-0001.bin>


More information about the cfe-commits mailing list