[clang] 0ca6dd9 - [clang-format] NFC ensure clang-format is itself clang-formatted

via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 29 12:02:04 PDT 2023


Author: mydeveloperday
Date: 2023-03-29T20:01:03+01:00
New Revision: 0ca6dd96d66db43fa7edd6f8b261808801750554

URL: https://github.com/llvm/llvm-project/commit/0ca6dd96d66db43fa7edd6f8b261808801750554
DIFF: https://github.com/llvm/llvm-project/commit/0ca6dd96d66db43fa7edd6f8b261808801750554.diff

LOG: [clang-format] NFC ensure clang-format is itself clang-formatted

Some patch in the past introduce this non clang-formatted change

Added: 
    

Modified: 
    clang/lib/Format/UnwrappedLineFormatter.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Format/UnwrappedLineFormatter.cpp b/clang/lib/Format/UnwrappedLineFormatter.cpp
index c789f2907dac9..97500dfbaade9 100644
--- a/clang/lib/Format/UnwrappedLineFormatter.cpp
+++ b/clang/lib/Format/UnwrappedLineFormatter.cpp
@@ -511,9 +511,10 @@ class LineJoiner {
         ShouldMerge = !Style.BraceWrapping.AfterClass ||
                       (NextLine.First->is(tok::r_brace) &&
                        !Style.BraceWrapping.SplitEmptyRecord);
-      } if(TheLine->InPPDirective ||
-               !TheLine->First->isOneOf(tok::kw_class, tok::kw_enum,
-                                        tok::kw_struct)) {
+      }
+      if (TheLine->InPPDirective ||
+          !TheLine->First->isOneOf(tok::kw_class, tok::kw_enum,
+                                   tok::kw_struct)) {
         // Try to merge a block with left brace unwrapped that wasn't yet
         // covered.
         ShouldMerge = !Style.BraceWrapping.AfterFunction ||


        


More information about the cfe-commits mailing list