[PATCH] D77682: [clang-format] Always break line after enum opening brace

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 8 03:12:47 PDT 2020


MyDeveloperDay added a comment.

I think what is interesting is

  BreakBeforeBraces: Custom
  BraceWrapping:
      AfterEnum: false

gets messed up completely by the `,` and that IS a bug in my view

  $ clang-format enum.cpp
  enum {
    A,
  };
  
  enum { B, C, D };
  
  enum {
    B,
    C,
    D,
  };
  
  enum { E };


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77682





More information about the cfe-commits mailing list