[clang-format] Handle leading comments in using declaration
authorDaniel Jasper <djasper@google.com>
Fri, 10 Nov 2017 17:11:18 +0000 (17:11 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 10 Nov 2017 17:11:18 +0000 (17:11 +0000)
commit028d815e2847d7056b37eb938b5fdaca7aa3636e
tree20f0f06173ad9f4cc338ca9f594afe256f440c30
parentc77d00e327d4997c5bb34e39ee6e16ca339237ca
[clang-format] Handle leading comments in using declaration

This fixes clang-format internal assertion for the following code:

  /* override */ using std::string;

Patch by Igor Sugak. Thank you.

llvm-svn: 317901
clang/lib/Format/UsingDeclarationsSorter.cpp
clang/unittests/Format/UsingDeclarationsSorterTest.cpp