- Renaming overridden functions only works for two levels of "overriding hierarchy". clang-rename should recursively add overridden methods.
- Make use of forEachOverridden AST Matcher.
Details
Details
Diff Detail
Diff Detail
Event Timeline
test/clang-rename/FunctionOverride.cpp | ||
---|---|---|
3 | I guess, this test will pass even if clang-rename doesn't do any changes, since the pattern in the CHECK line will match with itself. There are multiple ways to fix this. For instance, you can anchor the pattern to the start of line (// CHECK: {{ˆ}}class A ...) or add | sed 's,//.*,//' to the pipeline before | FileCheck %s. |
I guess, this test will pass even if clang-rename doesn't do any changes, since the pattern in the CHECK line will match with itself. There are multiple ways to fix this. For instance, you can anchor the pattern to the start of line (// CHECK: {{ˆ}}class A ...) or add | sed 's,//.*,//' to the pipeline before | FileCheck %s.