Fix destructors being incorrectly defined in the DefineOutline tweak
Currently it doesn't prepend the class name to the destructor
class A { ~A() {} }; // Destructor definition after outline ~A() {} // After this fix A::~A() {}
Paths
| Differential D147802
[clangd] Handle destructors in DefineOutline tweak ClosedPublic Authored by njames93 on Apr 7 2023, 11:49 AM.
Details Summary Fix destructors being incorrectly defined in the DefineOutline tweak class A { ~A() {} }; // Destructor definition after outline ~A() {} // After this fix A::~A() {}
Diff Detail
Event Timeline
Comment Actions thanks!
This revision is now accepted and ready to land.Apr 14 2023, 8:06 AM Closed by commit rG2eb9cc76a6c0: [clangd] Handle destructors in DefineOutline tweak (authored by njames93). · Explain WhyApr 14 2023, 9:51 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 513644 clang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp
clang-tools-extra/clangd/unittests/tweaks/DefineOutlineTests.cpp
|
I had thought about adjusting the FindTarget code for this, but that resulted in a lot of other failed tests. It seems a delicate one there.