[PATCH] D114583: [clang-format] Adjust braced list detection

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 25 09:38:18 PST 2021


MyDeveloperDay accepted this revision.
MyDeveloperDay added a comment.
This revision is now accepted and ready to land.

I ran the examples from https://bugs.llvm.org/show_bug.cgi?id=38314 and its so much better than the previous state!

Thanks for this patch, LGTM

  namespace n {
  void foo() {
      {
          {
              {
                  statement();
                  if (false) {
                  }
              }
          }
          {}
      }
  }
  }  // namespace n
  
  void foo() {
      {
          {
              statement();
              if (false) {
              }
          }
      }
      {}
  }  // namespace n


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

https://reviews.llvm.org/D114583



More information about the cfe-commits mailing list