User Details
- User Since
- Aug 14 2018, 4:06 AM (240 w, 5 d)
Today
Handles consecutive attributes too.
This patch is effectively NFC.
Yesterday
Don't format imaginary numbers.
Fri, Mar 24
Thu, Mar 23
@rymiel I'm deferring to you and @HazardyKnusperkeks, so doing nothing for now is fine.
Wed, Mar 22
Simplifies the fix.
Tue, Mar 21
Mon, Mar 20
@kadircet thanks for reporting the crash and reverting the commit. I will fix it and reland the patch.
Sun, Mar 19
Should we add tests to TokenAnnotatorTest.cpp?
Looks like this patch doesn't put the opening brace at the outerscope for some of the examples from the linked github issues:
$ cat .clang-format AllowShortLambdasOnASingleLine: None BraceWrapping: BeforeLambdaBody: true BreakBeforeBraces: Custom LambdaBodyIndentation: OuterScope $ cat test.cpp aaaaaaaaaaaaaaaaaaaa(1, b( [] { return 0; }));
Tue, Mar 14
The previous implementation of the option involved a hack which corrupted the parenthesis state stack.
Please see https://clang.llvm.org/docs/ClangFormatStyleOptions.html#adding-additional-style-options. Is there a way to fix the issue without adding a new option?
Mon, Mar 13
Sat, Mar 11
Fri, Mar 10
I'm more concerned with the above case. If the body of the lambda (including the enclosing braces) should not be merged into a single line, then I would say the token-annotation-only fix might trigger regressions. Otherwise, we can safely land this patch now.
Thu, Mar 9
Would this patch make the end result look worse without "making the requires clause formatting of lambdas
match the formatting for functions"? If yes, then we should not land it just yet.
Tue, Mar 7
Mon, Mar 6
Sun, Mar 5
Fri, Mar 3
Please add unit tests to relevant files in clang/unittests/Format/.
Thu, Mar 2
Wed, Mar 1
Mon, Feb 27
Sun, Feb 26
Should we revert this patch?
Sat, Feb 25
Feb 24 2023
Feb 22 2023
Feb 21 2023
Feb 19 2023
Feb 18 2023
Landed in c31bc7bdf810.
Feb 16 2023
Feb 14 2023
Feb 11 2023
Added tryMergeGreaterGreater() to and fixed tryMergerLessLess() of FormatTokenLexer.
Feb 10 2023
Feb 9 2023
Feb 8 2023
Feb 7 2023
Only if the patch is to clang-format source.
Feb 6 2023
Why don't we fix the buildbot instead? Why does it use a pre-16 version to test 16 source?