[PATCH] D78982: [clang-format] Fix Microsoft style for C++ enums
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 29 04:47:21 PDT 2020
MyDeveloperDay added inline comments.
================
Comment at: clang/docs/ClangFormatStyleOptions.rst:721
-
-**InsertTrailingCommas** (``TrailingCommaStyle``) can be set to ``TCS_Wrapped``
- to insert trailing commas in container literals (arrays and objects) that wrap
----------------
? are you removing something?
================
Comment at: clang/docs/ClangFormatStyleOptions.rst:2062
{
- [self.test1 t:self w:self callback:^(typeof(self) self, NSNumber *u, NSNumber *v) {
+ [self.test1 t:self w:self callback:^(typeof(self) self, NSNumber
+ *u, NSNumber *v) {
----------------
unrelated change
================
Comment at: clang/lib/Format/Format.cpp:1143
Style.PenaltyReturnTypeOnItsOwnLine = 1000;
+ Style.AllowShortEnumsOnASingleLine = (Language != FormatStyle::LK_Cpp);
Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_None;
----------------
I think its ok to leave it was, just if up the unit tests
(the fact you didn't see this suggests you are not running the unit tests please ensure you are)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78982/new/
https://reviews.llvm.org/D78982
More information about the cfe-commits
mailing list