Fixes https://llvm.org/PR41870.
Checks for newlines in option Style.EmptyLineBeforeAccessModifier are now based on the formatted new lines and not on the new lines in the file.
Differential D99503
[clang-format] Inconsistent behavior regarding line break before access modifier Max_S on Mar 29 2021, 6:28 AM. Authored by
Details Fixes https://llvm.org/PR41870. Checks for newlines in option Style.EmptyLineBeforeAccessModifier are now based on the formatted new lines and not on the new lines in the file.
Diff Detail
Unit Tests Event Timeline
Comment Actions Look good in general, only the few comments.
Comment Actions I do not have the access rights to the llvm git repo. Can you please land it for me. Thanks and thank you for the review. Comment Actions I don't know if you did elsewhere, but you have to give a name and email for the commit, so that someone can push it for you. Comment Actions Sorry for the inconvenience. These were the errors, that inspired this patch. In all cases the new version is now the correct one. The default setting of EmptyLineBeforeAccessModifier is to insert empty lines for logical blocks, which it does now. |
clang-format: please reformat the code