[clang-format] Add `SpacesInAngles: Leave` option to keep spacing inside angle bracke...
authorMarek Kurdej <marek.kurdej+llvm.org@gmail.com>
Thu, 29 Apr 2021 06:57:33 +0000 (08:57 +0200)
committerMarek Kurdej <marek.kurdej+llvm.org@gmail.com>
Thu, 29 Apr 2021 06:58:50 +0000 (08:58 +0200)
commit9363aa90bfe6f73df105799abc55bb74d4f186bf
tree298bf0bbc73dcd2b0df2a0ecb5f53a673f22989a
parentaa0b9200e8c5dea43c9ada2085a3061f4da70802
[clang-format] Add `SpacesInAngles: Leave` option to keep spacing inside angle brackets as is.

A need for such an option came up in a few libc++ reviews. That's because libc++ has both code in C++03 and newer standards.
Currently, it uses `Standard: C++03` setting for clang-format, but this breaks e.g. u8"string" literals.
Also, angle brackets are the only place where C++03-specific formatting needs to be applied.

Reviewed By: MyDeveloperDay, HazardyKnusperkeks

Differential Revision: https://reviews.llvm.org/D101344
clang/docs/ReleaseNotes.rst
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp