diff mbox series

[ndctl,1/2] clang-format: Align consecutive macros and #defines

Message ID 20221206-vv-misc-v1-1-4c5bd58c90ca@intel.com
State Accepted
Commit 962296d83059d222b6d481b9d56fb869095b6d96
Headers show
Series misc meson.build and clang-format updates | expand

Commit Message

Verma, Vishal L Dec. 6, 2022, 10:46 p.m. UTC
Add AlignConsecutiveMacros: true so that blocks of consecutive #defines
can be neatly aligned.

Cc: Dan Williams <dan.j.williams@intel.com>
Reported-by: Alison Schofield <alison.schofield@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
---
 .clang-format | 1 +
 1 file changed, 1 insertion(+)

Comments

Alison Schofield Dec. 7, 2022, 1:12 a.m. UTC | #1
On Tue, Dec 06, 2022 at 03:46:23PM -0700, Vishal Verma wrote:
> Add AlignConsecutiveMacros: true so that blocks of consecutive #defines
> can be neatly aligned.
> 
> Cc: Dan Williams <dan.j.williams@intel.com>
> Reported-by: Alison Schofield <alison.schofield@intel.com>
> Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
> ---

Thanks Vishal!
Reviewed-by: Alison Schofield <alison.schofield@intel.com>


>  .clang-format | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/.clang-format b/.clang-format
> index b6169e1..9ea49bf 100644
> --- a/.clang-format
> +++ b/.clang-format
> @@ -13,6 +13,7 @@ AccessModifierOffset: -4
>  AlignAfterOpenBracket: Align
>  AlignConsecutiveAssignments: false
>  AlignConsecutiveDeclarations: false
> +AlignConsecutiveMacros: true
>  #AlignEscapedNewlines: Left # Unknown to clang-format-4.0
>  AlignOperands: true
>  AlignTrailingComments: false
> 
> -- 
> 2.38.1
diff mbox series

Patch

diff --git a/.clang-format b/.clang-format
index b6169e1..9ea49bf 100644
--- a/.clang-format
+++ b/.clang-format
@@ -13,6 +13,7 @@  AccessModifierOffset: -4
 AlignAfterOpenBracket: Align
 AlignConsecutiveAssignments: false
 AlignConsecutiveDeclarations: false
+AlignConsecutiveMacros: true
 #AlignEscapedNewlines: Left # Unknown to clang-format-4.0
 AlignOperands: true
 AlignTrailingComments: false