HazardyKnusperkeks abandoned this revision.
HazardyKnusperkeks added a comment.
More than a year silence.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98429/new/
https://reviews.llvm.org/D98429
___
MyDeveloperDay added a comment.
Can you show `for (;;) {}` in your tests?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98429/new/
https://reviews.llvm.org/D98429
___
cfe-commits mailing list
hjelmn added a comment.
This is something I have been doing for over 20 years now. Not sure when I
initially picked it up but I find a space before the ;'s in a C for loop
improves readability. It more clearly differentiates the different parts. I
beleive the space before the colon in C++
curdeius requested changes to this revision.
curdeius added a comment.
Could you point me to a style guide that formats the code in this way please?
Comment at: clang/include/clang/Format/Format.h:2838
+ /// If ``false``, spaces will be removed before semi-colons in for
HazardyKnusperkeks added a subscriber: curdeius.
HazardyKnusperkeks added inline comments.
Comment at: clang/docs/ReleaseNotes.rst:168
+- Option ``SpaceBeforeForLoopSemiColon`` has been added to control whether
+ spaces will be added before the semi-colons in for loops.
hjelmn added inline comments.
Comment at: clang/docs/ReleaseNotes.rst:168
+- Option ``SpaceBeforeForLoopSemiColon`` has been added to control whether
+ spaces will be added before the semi-colons in for loops.
HazardyKnusperkeks wrote:
> No need for change,
HazardyKnusperkeks added reviewers: MyDeveloperDay, HazardyKnusperkeks.
HazardyKnusperkeks requested changes to this revision.
HazardyKnusperkeks added inline comments.
This revision now requires changes to proceed.
Comment at: clang/docs/ReleaseNotes.rst:168
+- Option
hjelmn updated this revision to Diff 330865.
hjelmn added a comment.
One more issue with the test. Made a mistake with whether there is a space
before the colon.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98429/new/
hjelmn updated this revision to Diff 330834.
hjelmn added a comment.
Fixed a typo
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98429/new/
https://reviews.llvm.org/D98429
Files:
clang/docs/ClangFormatStyleOptions.rst
hjelmn updated this revision to Diff 330800.
hjelmn edited the summary of this revision.
hjelmn added a comment.
Updated change log and added a test to cover range based for with initializer.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98429/new/
HazardyKnusperkeks added a comment.
Please add a note to the release notes and also a test for a range based for
with initializer (c++20).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98429/new/
https://reviews.llvm.org/D98429
hjelmn created this revision.
hjelmn added reviewers: krasimir, djasper.
hjelmn requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
The option SpaceBeforeForLoopSemiColon controls whether clang-format puts
a space before the semi-colons in a
12 matches
Mail list logo