[clang] 77b2fc8 - [clang-format][NFC] Reformat and fix file mode

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 30 18:35:32 PDT 2023


Author: Owen Pan
Date: 2023-08-30T18:35:24-07:00
New Revision: 77b2fc8ad9224bbabcb4a3bc3e97ab3852348aec

URL: https://github.com/llvm/llvm-project/commit/77b2fc8ad9224bbabcb4a3bc3e97ab3852348aec
DIFF: https://github.com/llvm/llvm-project/commit/77b2fc8ad9224bbabcb4a3bc3e97ab3852348aec.diff

LOG: [clang-format][NFC] Reformat and fix file mode

Fix file mode errors introduced in 2c9372e78d7c and format errors in
https://reviews.llvm.org/D155239.

Added: 
    

Modified: 
    clang/include/clang/Format/Format.h
    clang/lib/Format/QualifierAlignmentFixer.cpp
    clang/lib/Format/QualifierAlignmentFixer.h
    clang/unittests/Format/QualifierFixerTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h
index b641b313e32d98..9b1bf8a48014ce 100644
--- a/clang/include/clang/Format/Format.h
+++ b/clang/include/clang/Format/Format.h
@@ -4335,17 +4335,15 @@ struct FormatStyle {
           InEmptyParentheses(false), Other(false) {}
 
     SpacesInParensCustom(bool InConditionalStatements, bool InCStyleCasts,
-        bool InEmptyParentheses, bool Other)
+                         bool InEmptyParentheses, bool Other)
         : InConditionalStatements(InConditionalStatements),
-          InCStyleCasts(InCStyleCasts),
-          InEmptyParentheses(InEmptyParentheses),
+          InCStyleCasts(InCStyleCasts), InEmptyParentheses(InEmptyParentheses),
           Other(Other) {}
 
     bool operator==(const SpacesInParensCustom &R) const {
       return InConditionalStatements == R.InConditionalStatements &&
              InCStyleCasts == R.InCStyleCasts &&
-             InEmptyParentheses == R.InEmptyParentheses &&
-             Other == R.Other;
+             InEmptyParentheses == R.InEmptyParentheses && Other == R.Other;
     }
     bool operator!=(const SpacesInParensCustom &R) const {
       return !(*this == R);

diff  --git a/clang/lib/Format/QualifierAlignmentFixer.cpp b/clang/lib/Format/QualifierAlignmentFixer.cpp
old mode 100755
new mode 100644

diff  --git a/clang/lib/Format/QualifierAlignmentFixer.h b/clang/lib/Format/QualifierAlignmentFixer.h
old mode 100755
new mode 100644

diff  --git a/clang/unittests/Format/QualifierFixerTest.cpp b/clang/unittests/Format/QualifierFixerTest.cpp
old mode 100755
new mode 100644


        


More information about the cfe-commits mailing list