This is an archive of the discontinued LLVM Phabricator instance.

[clang-format][NFC] Remove unused FormatStyle members
ClosedPublic

Authored by owenpan on Jun 9 2022, 3:43 AM.

Diff Detail

Event Timeline

owenpan created this revision.Jun 9 2022, 3:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2022, 3:43 AM
owenpan requested review of this revision.Jun 9 2022, 3:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2022, 3:43 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
curdeius accepted this revision.Jun 9 2022, 4:21 AM

Good finding!

This revision is now accepted and ready to land.Jun 9 2022, 4:21 AM
This revision was automatically updated to reflect the committed changes.

If we remove it from here, then it will get removed from the documentation

Also if you remove it, then the ClangFormatStyleOptions.rst needs to be regenerated. But somehow I think we need that comment no? incase someone is looking up their legacy options when migrating?

If we remove it from here, then it will get removed from the documentation

Also if you remove it, then the ClangFormatStyleOptions.rst needs to be regenerated.

Good catch! I will regenerate it.

But somehow I think we need that comment no? incase someone is looking up their legacy options when migrating?

IIRC there were other deprecated options that were removed from Format.h. These two options were old enough and IMO we left them in Format.h long enough. Nevertheless, I will see if we can add the comments back without keeping the FormatStyle members.