[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 12 12:01:59 PST 2024


================
@@ -171,6 +187,31 @@ void DefinitionBlockSeparator::separateBlocks(
       return false;
     };
 
+    // Separate License text.
+    const bool isComment = Lines[I]->isComment();
----------------
HazardyKnusperkeks wrote:

```suggestion
    const bool IsComment = Lines[I]->isComment();
```

All variables begin in upper case.

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


More information about the cfe-commits mailing list