[clang] [clang-format] Separate License text and include blocks (PR #77918)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 19 11:47:37 PST 2024


================
@@ -4827,6 +4873,8 @@ struct FormatStyle {
            DerivePointerAlignment == R.DerivePointerAlignment &&
            DisableFormat == R.DisableFormat &&
            EmptyLineAfterAccessModifier == R.EmptyLineAfterAccessModifier &&
+           EmptyLinesAfterIncludes == R.EmptyLinesAfterIncludes &&
+           EmptyLinesAfterTopLevelComment == R.EmptyLinesAfterTopLevelComment &&
            EmptyLineBeforeAccessModifier == R.EmptyLineBeforeAccessModifier &&
----------------
HazardyKnusperkeks wrote:

```suggestion
           EmptyLineBeforeAccessModifier == R.EmptyLineBeforeAccessModifier &&
           EmptyLinesAfterIncludes == R.EmptyLinesAfterIncludes &&
           EmptyLinesAfterTopLevelComment == R.EmptyLinesAfterTopLevelComment &&
```

https://github.com/llvm/llvm-project/pull/77918


More information about the cfe-commits mailing list