Previously, we match ranges, which is hard to spot the difference.
Now, we diff the code after rename against the expected result, it
produces much nicer output.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM! Many thanks, the new tests are much simpler to read!
clang-tools-extra/clangd/unittests/RenameTests.cpp | ||
---|---|---|
31 | NIT: Test.llvm::Annotations::ranges() will return ranges with offsets. | |
44 | NIT: worth documenting that ^ points to the start position of the rename and ranges point to the identifier that is being renamed. | |
44 | NIT: maybe use llvm::StringRef Tests[] instead? |
NIT: Test.llvm::Annotations::ranges() will return ranges with offsets.
Should simplify the code.