[PATCH] Indent all lines in a multi-line comment by the same amount.

Daniel Jasper djasper at google.com
Fri Mar 15 06:43:22 PDT 2013



================
Comment at: lib/Format/Format.cpp:210
@@ -222,1 +209,3 @@
+          if (Current >= TokEnd || *Current != ' ')
+            return;
       } else {
----------------
Daniel Jasper wrote:
> Is "giving up" entirely really the right option? Why not outdent as much as we can?
After some more thinking/discussions, this makes sense as it will commonly happen for code that is temporarily commented out during editing.


http://llvm-reviews.chandlerc.com/D544

BRANCH
  svn

ARCANIST PROJECT
  clang



More information about the cfe-commits mailing list