[libcxx-commits] [PATCH] D99691: [libcxx] adjusts formatting rules
Marek Kurdej via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Apr 4 06:07:00 PDT 2021
curdeius added a comment.
In D99691#2667984 <https://reviews.llvm.org/D99691#2667984>, @Mordante wrote:
> Unfortunately there's a blocker to make clang-format a hard error. We need a solution to support multiple C++ version at least on a file basis. Using C++03 formatting will break valid C++20 code `auto str = u8"abc";` will become `auto str = u8 "abc";`.
That's a very good point.
I started working on `SpacesInAngles: Leave` option for clang-format. If that's accepted, we could use this option together with `Standard: Latest` (or `c++20`, btw, Cpp11 is deprecated). I need to check that there's nothing else apart angle brackets that may break pre-C++20 code.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99691/new/
https://reviews.llvm.org/D99691
More information about the libcxx-commits
mailing list