[PATCH] Refactor the formatter of clang-format.

Daniel Jasper djasper at google.com
Mon May 11 00:37:32 PDT 2015


Nice.


================
Comment at: lib/Format/UnwrappedLineFormatter.h:42-44
@@ -67,1 +41,5 @@
+  /// \brief Format the current block and return the penalty.
+  unsigned format(const SmallVectorImpl<AnnotatedLine *> &Lines,
+                  const bool DryRun = false, const int AdditionalIndent = 0,
+                  const bool FixBadIndentation = false);
 
----------------
I think 'const' isn't really necessary.

http://reviews.llvm.org/D9597

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list