[libcxx-commits] [PATCH] D112728: [libc++] Update clang-format to C++20.
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Oct 28 08:51:24 PDT 2021
Mordante created this revision.
Mordante requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
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"`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D112728
Files:
libcxx/.clang-format
Index: libcxx/.clang-format
===================================================================
--- libcxx/.clang-format
+++ libcxx/.clang-format
@@ -2,7 +2,8 @@
---
Language: Cpp
-Standard: Cpp03
+Standard: c++20
+SpacesInAngles: Leave
AlwaysBreakTemplateDeclarations: true
PointerAlignment: Left
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112728.383052.patch
Type: text/x-patch
Size: 306 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211028/40e82ada/attachment.bin>
More information about the libcxx-commits
mailing list