- When moving an outermost enclosing class, all its nested classes should also be moved together.
- Add a test for not moving nested class.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang-move/ClangMove.cpp | ||
---|---|---|
27 ↗ | (On Diff #73928) | I'm not sure if we really need to limit this to the outer-most class. In the future, we might want to support moving nested class, so I guess this can simply be ofClass? Not sure if the name is right though. |
343 ↗ | (On Diff #73928) | What about static variable of the nested class? |
clang-move/ClangMove.cpp | ||
---|---|---|
27 ↗ | (On Diff #73928) | clang-move can't handle nested classes well enough currently, and supporting nested class requires more stuff there, like changing the qualifiers of the method definitions in the nested class (int A::B::f() should be int B::f() when moving nested class A::B). So we'd better to only allow outer-most class at least for now . |