[clang] Fixes and closes issues, #53390 and #58710. Added new controls to IndentNamespaceAliases, IndentUsingDeclarations and DecorateReflowedComments. (PR #102894)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 12 12:01:00 PDT 2024


================
@@ -346,6 +345,35 @@ bool UnwrappedLineParser::precededByCommentOrPPDirective() const {
          (Previous->IsMultiline || Previous->NewlinesBefore > 0);
 }
 
+void UnwrappedLineParser::parseStmt(bool keepIndentation) {
+  bool levelsAreAdded = (Line->Level == DeclarationScopeStack.size());
----------------
HazardyKnusperkeks wrote:

```suggestion
  bool LevelsAreAdded = Line->Level == DeclarationScopeStack.size();
```
Upper case and no unnecessary parenthesis.

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


More information about the cfe-commits mailing list