[PATCH] D56610: [clangd] A code action to qualify an unqualified name
Ilya Biryukov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 18 10:36:16 PST 2019
ilya-biryukov added a comment.
In D56610#1363408 <https://reviews.llvm.org/D56610#1363408>, @JonasToth wrote:
> Is this for something like `add const`?
> If yes, there is clang-tidy effort on that, see https://reviews.llvm.org/D54943 and https://reviews.llvm.org/D54395 for a similar effort. Would be best to share the code instead of reinventing it :)
No, this action is not about adding a type qualifier (like `const` or `volatile`), it adds a namespace qualifier, e.g.
using namespace std;
vector<int> foo; // --> std::vector<int> foo;
Moreover, it's just an example to illustrate how one could write a simple action like that in clangd.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56610/new/
https://reviews.llvm.org/D56610
More information about the cfe-commits
mailing list