[PATCH] D98237: [clang-format] Option for empty lines after an access modifier.

Max Sagebaum via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 19 03:43:04 PDT 2021


Max_S added inline comments.


================
Comment at: clang/include/clang/Format/Format.h:1914
+    ELAAMS_Leave,
+    /// Always add empty line after access modifiers.
+    /// \code
----------------
HazardyKnusperkeks wrote:
> It does not always add, it does enforces one empty line, or am I mistaken?
It adds it if it is missing, but leaves additional lines. All in all MaxEmptyLinesToKeep has precedence here. If MaxEmptyLinesToKeep is zero, then no line is added.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98237/new/

https://reviews.llvm.org/D98237



More information about the cfe-commits mailing list