This is an archive of the discontinued LLVM Phabricator instance.

[clang-doc] Default to Standalone executor and improve documentation
ClosedPublic

Authored by phosek on Jul 21 2022, 1:15 AM.

Details

Summary

This should provide a more intuitive usage consistent with other tools.

Diff Detail

Event Timeline

phosek created this revision.Jul 21 2022, 1:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 21 2022, 1:15 AM
phosek requested review of this revision.Jul 21 2022, 1:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 21 2022, 1:15 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
paulkirth accepted this revision.Jul 21 2022, 8:08 AM

LGTM w/ the caveat that I think we should update the release notes, since we're changing the default behavior of a command line tool. I've also left a few small suggestions the wording.

clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
188–201
192
clang-tools-extra/docs/clang-doc.rst
28
34
77
81
This revision is now accepted and ready to land.Jul 21 2022, 8:08 AM
phosek updated this revision to Diff 450039.Aug 4 2022, 10:10 AM
phosek marked 3 inline comments as done.
abrachet accepted this revision.Aug 4 2022, 10:24 AM
abrachet added inline comments.
clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
195

Is it intentional that the rest of this help message also has two spaces before the text? It seems like the only other Overview passed to createExecutorFromCommandLineArgs in clangd has the same formatting. It also has the trailing whitespace on newline, but I don't think it should

phosek updated this revision to Diff 450055.Aug 4 2022, 10:36 AM
phosek marked an inline comment as done.
This revision was landed with ongoing or failed builds.Aug 4 2022, 10:43 AM
This revision was automatically updated to reflect the committed changes.