llvm-project/clang-tools-extra/clangd/refactor
Haojian Wu af28bb6502 [clangd] Fix a crash when renaming operator.
Summary:
The renamelib uses a tricky way to calculate the end location by relying
on decl name, this is incorrect for the overloaded operator (the name is
"operator++" instead of "++"), which will cause out-of-file offset.

We also disable renaming operator symbol, this case is tricky, and
renamelib doesnt handle it properly.

Reviewers: ilya-biryukov

Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D67607

llvm-svn: 371971
2019-09-16 10:16:56 +00:00
..
tweaks [clangd] Support multifile edits as output of Tweaks 2019-09-09 12:28:44 +00:00
Rename.cpp [clangd] Fix a crash when renaming operator. 2019-09-16 10:16:56 +00:00
Rename.h [clangd] Move getBeginningOfIdentifier from ClangdUnit to SourceCode. Drop dependencies on ClangdUnit from some headers. NFC 2019-09-03 15:34:47 +00:00
Tweak.cpp [clangd] Support multifile edits as output of Tweaks 2019-09-09 12:28:44 +00:00
Tweak.h [clangd] Support multifile edits as output of Tweaks 2019-09-09 12:28:44 +00:00