[PATCH] D86473: [clangd] When inserting "using", add "::" in front if that's the style.
Adam Czachorowski via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 24 10:19:39 PDT 2020
adamcz created this revision.
adamcz added a reviewer: hokein.
Herald added subscribers: cfe-commits, usaxena95, kadircet, arphaman, jkorous.
Herald added a project: clang.
adamcz requested review of this revision.
Herald added subscribers: MaskRay, ilya-biryukov.
We guess the style based on the existing using declarations. If there
are any and they all start with ::, we add it to the newly added one
too.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D86473
Files:
clang-tools-extra/clangd/refactor/tweaks/AddUsing.cpp
clang-tools-extra/clangd/unittests/TweakTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86473.287435.patch
Type: text/x-patch
Size: 3652 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200824/fa38fb56/attachment.bin>
More information about the cfe-commits
mailing list