- 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
- Build Status
Buildable 254 Build 254: arc lint + arc unit
Event Timeline
clang-move/ClangMove.cpp | ||
---|---|---|
27 | 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 . |
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.