[all-commits] [llvm/llvm-project] 3362fa: [clang-format] extern with new line brace without ...

MyDeveloperDay via All-commits all-commits at lists.llvm.org
Sat Dec 18 06:10:35 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3362fa59ec406ba1eebe9e9ee59a04b675ef2439
      https://github.com/llvm/llvm-project/commit/3362fa59ec406ba1eebe9e9ee59a04b675ef2439
  Author: mydeveloperday <mydeveloperday at gmail.com>
  Date:   2021-12-18 (Sat, 18 Dec 2021)

  Changed paths:
    M clang/lib/Format/UnwrappedLineParser.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] extern with new line brace without indentation

https://github.com/llvm/llvm-project/issues/49804

Interaction between IndentExternBlock and AfterExternBlock means you cannot have AfterExternBlock = true and IndentExternBlock = NoIndent/Indent

This patch resolves that
```
BraceWrapping:
  AfterExternBlock: true
IndentExternBlock: AfterExternBlock
```
Fixes: #49804

Reviewed By: HazardyKnusperkeks, curdeius, owenpan

Differential Revision: https://reviews.llvm.org/D115879




More information about the All-commits mailing list