This fixes clang-format internal assertion for the following code:
/* override */ using std::string;
Added add a unit test.
Paths
| Differential D39478
[clang-format] Handle leading comments in using declaration ClosedPublic Authored by sugak on Oct 31 2017, 2:40 PM.
Details
Summary This fixes clang-format internal assertion for the following code: /* override */ using std::string; Added add a unit test.
Diff Detail Event Timeline
This revision is now accepted and ready to land.Nov 1 2017, 12:12 PM sugak marked 3 inline comments as done. Comment ActionsUpdated per comments. @djasper : Thank you for the review! Would you commit this for me?
Revision Contents
Diff 121165 lib/Format/UsingDeclarationsSorter.cpp
unittests/Format/UsingDeclarationsSorterTest.cpp
|
and this is the assertions that fails for the code referenced in the summary.