[PATCH] D88875: [clangd] Add basic keyword-name-validation in rename.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 6 06:31:52 PDT 2020
sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang-tools-extra/clangd/ClangdServer.cpp:416
+ auto Results = clangd::rename(
+ {Pos, /*NewName=*/"__clangd_rename_dummy", InpAST->AST, File,
+ RenameOpts.AllowCrossFile ? nullptr : Index, RenameOpts});
----------------
oh, reserved name is clever :-)
Though it occurs to me - we could actually warn on rename to a reserved name!
(We can still do this and just ignore __clangd_*)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88875/new/
https://reviews.llvm.org/D88875
More information about the cfe-commits
mailing list