[PATCH] D79773: [clang-format] Improve clang-formats handling of concepts
Marek Kurdej via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 26 00:31:46 PDT 2020
curdeius added inline comments.
================
Comment at: clang/include/clang/Format/Format.h:533
+ /// If ``true``, always break before concept declarations
+ bool AlwaysBreakBeforeConceptDeclarations;
----------------
It would be nice to have an example here in the doc.
================
Comment at: clang/unittests/Format/FormatTest.cpp:13540
CHECK_PARSE_BOOL(AlignConsecutiveMacros);
+ CHECK_PARSE_BOOL(AlwaysBreakBeforeConceptDeclarations);
CHECK_PARSE_BOOL(AllowAllArgumentsOnNextLine);
----------------
Format: leading whitespace. Should it be in the same "group" as `AlignConsecutiveMacros`?
================
Comment at: clang/unittests/Format/FormatTest.cpp:16745
+ " ::std::is_copy_constructable<T> and "
+ "::std::is_move_constructable<T> and\n"
+ " requires (T c) {\n"
----------------
Isn't it a strange indentation?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79773/new/
https://reviews.llvm.org/D79773
More information about the cfe-commits
mailing list