[cfe-commits] [PATCH] "<<" alignment for clang-format
Manuel Klimek
klimek at google.com
Thu Dec 6 01:43:13 PST 2012
otherwise lg
================
Comment at: lib/Format/Format.cpp:145
@@ +144,3 @@
+ /// on a level.
+ std::vector<unsigned> LessLessPos;
+
----------------
Perhaps call that LastLessLess to be consistent with LastSpace?
================
Comment at: lib/Format/Format.cpp:249
@@ -220,1 +248,3 @@
+ if (Current.Tok.is(tok::lessless) && State.LessLessPos[ParenLevel] == 0)
+ State.LessLessPos[ParenLevel] = State.Column - 2;
----------------
I assume the -2 magic number here is the sizeof lessless? In that case, why not add Current.Tok.Length() after this if?
http://llvm-reviews.chandlerc.com/D177
More information about the cfe-commits
mailing list