[PATCH] Fixes incorrect indentation of line comments after break and re-alignment.
Manuel Klimek
klimek at google.com
Sun Jun 16 23:20:23 PDT 2013
================
Comment at: lib/Format/WhitespaceManager.cpp:71
@@ -70,2 +70,3 @@
// correctly store a tok::TokenKind instead of rolling our own enum.
- tok::unknown, InPPDirective && !Tok.IsFirst));
+ Tok.Type == TT_LineComment && Newlines > 0 ? tok::comment : tok::unknown,
+ InPPDirective && !Tok.IsFirst));
----------------
Why does Newlines > 0 make a difference here?
http://llvm-reviews.chandlerc.com/D980
More information about the cfe-commits
mailing list