[PATCH] D29300: [clang-format] Refactor WhitespaceManager and friends

Daniel Jasper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 31 04:45:49 PST 2017


djasper marked an inline comment as done.
djasper added inline comments.


================
Comment at: lib/Format/WhitespaceManager.cpp:178
-      LastBlockComment = &Change;
-    } else if (Change.Kind == tok::unknown) {
-      if ((Change.StartOfBlockComment = LastBlockComment))
----------------
krasimir wrote:
> What happened to the tok::unknown case?
We actually don't set the token back to unknown in replaceWhitespaceInToken anymore if this is a comment. So I moved this logic back into the if above.


https://reviews.llvm.org/D29300





More information about the cfe-commits mailing list