This patch adds UsingDeclarationsSorter, a TokenAnalyzer that sorts consecutive
using declarations.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 7364 Build 7364: arc lint + arc unit
Event Timeline
| lib/Format/UsingDeclarationsSorter.cpp | ||
|---|---|---|
| 67 | could also be followed by an assignment, in case of type alias: using foo = bar::foo; | |
Comment Actions
- Update test case
| lib/Format/UsingDeclarationsSorter.cpp | ||
|---|---|---|
| 67 | Type aliases are in general not safe to permute, as in: struct C {
struct B {
struct A;
};
};
using B = C::B;
using A = B::A;Adding a test specifically for this. | |
Use either: