This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Ensure dump_format_style.py can generate ClangFormatStyleOptions.rst without manual intervention
ClosedPublic

Authored by MyDeveloperDay on Nov 8 2019, 3:32 AM.

Details

Summary

This revision is the last in a series of revisions to return clang/doc/tools/dump_format_style.py to be being able to parse Format.h without needing to manually merge the ClangFormatStyleOptions.rst file.

The final modification to dump_format_style.py is needed following the addition of a nested enumeration inside a nested structure following the introduction of D68296: [clang-format] Add ability to wrap braces after multi-line control statements

Prior related revisions will allow for a fully clang-formatted clang/include/clang/Format/Format.h to once again be used at the source.
D69951: [clang-format] NFC allow Format.h to be clang-formatted but still maintain the same doc layout in ClangFormatStyleOptions.rst
D69433: [clang-format] [NFC] update the documentation in Format.h to allow dump_format_style.py to get a little closer to being correct. (part 2)
D69404: [clang-format] [NFC] update the documentation in Format.h to allow dump_format_style.py to get a little closer to being correct.

Diff Detail

Event Timeline

MyDeveloperDay created this revision.Nov 8 2019, 3:32 AM

Just in case you want proof the generated html looks the same:

This revision is now accepted and ready to land.Nov 8 2019, 6:20 AM
This revision was automatically updated to reflect the committed changes.