[PATCH] D39478: [clang-format] Handle leading comments in using declaration

Igor Sugak via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 31 15:02:19 PDT 2017


sugak added inline comments.


================
Comment at: lib/Format/UsingDeclarationsSorter.cpp:50
 std::string computeUsingDeclarationLabel(const FormatToken *UsingTok) {
   assert(UsingTok && UsingTok->is(tok::kw_using) && "Expecting a using token");
   std::string Label;
----------------
and this is the assertions that fails for the code referenced in the summary.


https://reviews.llvm.org/D39478





More information about the cfe-commits mailing list