clang-rename is currently not able to find a symbol in initializer list. This patch is a fix of that bug.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LG with a nit.
clang-rename/USRFinder.cpp | ||
---|---|---|
100 ↗ | (On Diff #66915) | It might be not clear from the context what auto means here, I'd use the explicit type. |
Comment Actions
Yes, kind of. I'd change these to C-style comments, place them on the same line with the interesting identifier (probably, right after the identifier), and document a generic way of finding the offset using grep -Ubo 'Foo.*' or whatever grep flags are needed.
For example:
$ cat /tmp/a.h #include <string> struct Foo /* test 1 */ { Foo /* test 2 */ (const std::string &s); std::string s; }; // Test 1. // RUN: ..... -offset=26 ... // Test2. // RUN: ..... -offset=47 ... // To find offsets after modifying the file, use: // grep -Ubo 'Foo.*' <file> $ grep -Ubo 'Foo.*' /tmp/a.h 26:Foo /* test 1 */ { 47:Foo /* test 2 */ (const std::string &s); 255:Foo.*' <file>