[PATCH] Fix a problem in ExpressionParser leading to trailing comments affecting indentation of an expression after a line break.
Manuel Klimek
klimek at google.com
Sun Jun 16 23:03:23 PDT 2013
================
Comment at: tools/clang/lib/Format/TokenAnnotator.cpp:862
@@ -866,1 +861,3 @@
+ Current = Current->Next;
+ while (Current && Current->isTrailingComment())
Current = Current->Next;
----------------
I assume this works because currently the only place where we check whether something is a trailing comment checks "previous"?
http://llvm-reviews.chandlerc.com/D984
More information about the cfe-commits
mailing list