[PATCH] D68562: [clangd] Add RemoveUsingNamespace tweak.
UTKARSH SAXENA via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 7 02:50:45 PDT 2019
usaxena95 created this revision.
Herald added subscribers: cfe-commits, kadircet, arphaman, mgrang, jkorous, MaskRay, ilya-biryukov, mgorny.
Herald added a project: clang.
Removes the 'using namespace' under the cursor and qualifies all accesses in the current file.
E.g.:
using namespace std;
vector<int> foo(std::map<int, int>);
Would become:
std::vector<int> foo(std::map<int, int>);
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D68562
Files:
clang-tools-extra/clangd/AST.cpp
clang-tools-extra/clangd/AST.h
clang-tools-extra/clangd/refactor/tweaks/CMakeLists.txt
clang-tools-extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp
clang-tools-extra/clangd/unittests/TweakTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68562.223462.patch
Type: text/x-patch
Size: 16113 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191007/8f85b00c/attachment.bin>
More information about the cfe-commits
mailing list