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>);
Differential D68562
[clangd] Add RemoveUsingNamespace tweak. usaxena95 on Oct 7 2019, 2:49 AM. Authored by
Details Removes the 'using namespace' under the cursor and qualifies all accesses in the current file. using namespace std; vector<int> foo(std::map<int, int>); Would become: std::vector<int> foo(std::map<int, int>);
Diff Detail
Event TimelineComment Actions The main comment is about limiting this only to global namespace. PTAL.
Comment Actions Bulid results are available at http://results.llvm-merge-guard.org/Phabricator-19 See http://jenkins.llvm-merge-guard.org/job/Phabricator/19/ for more details.
Comment Actions Make action unavailable if the namespace contains a using namespace decl.
Comment Actions Many thanks, this LG overall, just a few NITs and documentation requests.
Comment Actions LGTM, many thanks! A few last NITs too
|
NIT: use three slashes