This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] PackConstructorInitializers support PCIS_NextLineOnly
ClosedPublic

Authored by Backl1ght on Feb 1 2023, 9:56 AM.

Diff Detail

Event Timeline

Backl1ght created this revision.Feb 1 2023, 9:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 1 2023, 9:56 AM
Backl1ght requested review of this revision.Feb 1 2023, 9:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 1 2023, 9:56 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
Backl1ght retitled this revision from https://github.com/llvm/llvm-project/issues/60241 to [clang-format] PackConstructorInitializers support PCIS_OnlyNextLine.Feb 1 2023, 9:57 AM

An entry in the changelog would be nice.

clang/lib/Format/ContinuationIndenter.cpp
1407–1409
Backl1ght updated this revision to Diff 494281.Feb 2 2023, 6:12 AM

adapt suggestion

Backl1ght marked an inline comment as done.Feb 2 2023, 6:15 AM

An entry in the changelog would be nice.

It is already added I think.

An entry in the changelog would be nice.

It is already added I think.

I don't see anything. And how could it, if you add that value?

Backl1ght added inline comments.Feb 3 2023, 11:55 PM
clang/docs/ClangFormatStyleOptions.rst
3891

@HazardyKnusperkeks Maybe I misunderstand something, I think I already add an entry here by running clang/docs/tools/dump_format_style.py.

owenpan added inline comments.Feb 4 2023, 2:47 AM
clang/docs/ClangFormatStyleOptions.rst
3891

NextLineOnly instead?

clang/unittests/Format/FormatTest.cpp
7296–7298

Can you add this test to before/after colon below (and elsewhere if applicable)?

7299

Can you add a test here and elsewhere for constructors that don't fit on the next line?

Backl1ght updated this revision to Diff 494821.Feb 4 2023, 6:49 AM

add more unittest

Backl1ght retitled this revision from [clang-format] PackConstructorInitializers support PCIS_OnlyNextLine to [clang-format] PackConstructorInitializers support PCIS_NextLineOnly.Feb 4 2023, 6:49 AM
Backl1ght marked 3 inline comments as done.
owenpan added inline comments.Feb 4 2023, 5:01 PM
clang/lib/Format/Format.cpp
446
clang/unittests/Format/ConfigParseTest.cpp
403
clang/docs/ClangFormatStyleOptions.rst
3891

@HazardyKnusperkeks Maybe I misunderstand something, I think I already add an entry here by running clang/docs/tools/dump_format_style.py.

This is the documentation about the configuration. I was talking about an entry in the clang/docs/ReleaseNotes.rst.

Backl1ght updated this revision to Diff 494903.Feb 5 2023, 5:58 AM

fix typo and add release note

Backl1ght marked 3 inline comments as done.Feb 5 2023, 5:59 AM
This revision is now accepted and ready to land.Feb 5 2023, 11:42 AM
owenpan accepted this revision.Feb 5 2023, 1:12 PM
This revision was landed with ongoing or failed builds.Feb 6 2023, 4:05 AM
This revision was automatically updated to reflect the committed changes.