[libcxx-commits] [libcxx] 4cb3d7d - [libc++] Update clang-format to C++20.

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Sat Oct 30 03:51:01 PDT 2021


Author: Mark de Wever
Date: 2021-10-30T12:50:57+02:00
New Revision: 4cb3d7d7b4abbd0ad47fc3e590eafa5426726066

URL: https://github.com/llvm/llvm-project/commit/4cb3d7d7b4abbd0ad47fc3e590eafa5426726066
DIFF: https://github.com/llvm/llvm-project/commit/4cb3d7d7b4abbd0ad47fc3e590eafa5426726066.diff

LOG: [libc++] Update clang-format to C++20.

We now use clang-format-13 which has the option SpacesInAngles. This
allows us to switch the default language version to C++20, which should
avoid breaking code when formatting due to the adding of whitespace.
For example `u8"foo"` no longer is formatted as `u8 "foo"`.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D112728

Added: 
    

Modified: 
    libcxx/.clang-format

Removed: 
    


################################################################################
diff  --git a/libcxx/.clang-format b/libcxx/.clang-format
index 4598f60a0090..527b629c382b 100644
--- a/libcxx/.clang-format
+++ b/libcxx/.clang-format
@@ -2,7 +2,8 @@ BasedOnStyle: LLVM
 
 ---
 Language: Cpp
-Standard: Cpp03
+Standard: c++20
+SpacesInAngles: Leave
 
 AlwaysBreakTemplateDeclarations: true
 PointerAlignment: Left


        


More information about the libcxx-commits mailing list