Ok, so apparently clangd has support for refactoring C++ code to replace `using namespace std;`

reviews.llvm.org/D68562

... but how do I use this? Am I stoopid?

I am already using clangd in my project, I have compile_commands.json, but my editor doesn't offer the specific feature and I can find no command line tool that does either :blobugh:

#cplusplus #llvm #clang #followerpower

Follow

@__h2__ depends a lot on your editor and configuration. Mine (emacs with eglot) has a code actions command where that shows up.

@ambihelical My editor (Kate) does provide the respective action, I found it. It's just not in the LSP menu where I expected it.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.