This is an archive of the discontinued LLVM Phabricator instance.

[clang-doc] Switch to default to all-TUs executor
ClosedPublic

Authored by juliehockett on Oct 11 2018, 2:12 PM.

Details

Summary

Since we generally want to document a whole project, not just one file.

@ioeric, is this an acceptable way to do this? I want to be able to use any executor, but I'd like the default to be all-TUs instead of standalone.

Diff Detail

Event Timeline

juliehockett created this revision.Oct 11 2018, 2:12 PM
leonardchan added inline comments.Oct 11 2018, 2:26 PM
clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
90–92

I think this might be more than 80 characters in a line? Run clang-format just to be sure.

202–203

Formatting nit: Should the arguments be aligned here?

211–213

Nit: Remove braces

juliehockett marked 3 inline comments as done.
Eugene.Zelenko added inline comments.
clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
204

Please don't use auto when type is not spelled in same statement.

208

Please use range loop.

ioeric requested changes to this revision.Oct 12 2018, 4:51 AM
ioeric added inline comments.
clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
202

This is exposing too much implementation details.I landed a patch to expose the ExecutorName option from the library (rL344335) so you could simply do ExecutorName.setInitialValue("all-TUs") before calling createExecutorFromCommandLineArgs().

This revision now requires changes to proceed.Oct 12 2018, 4:51 AM
juliehockett marked 3 inline comments as done.
juliehockett added inline comments.
clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
202

Perfect. Thanks!

ioeric added inline comments.Oct 12 2018, 8:36 AM
clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
89–93

This flag can also be removed. Users can still use --executor to override the default.

juliehockett marked 3 inline comments as done.
ioeric accepted this revision.Oct 12 2018, 9:26 AM
This revision is now accepted and ready to land.Oct 12 2018, 9:26 AM
This revision was automatically updated to reflect the committed changes.