This is an archive of the discontinued LLVM Phabricator instance.

[clang] Document environment variables used by the driver
Needs ReviewPublic

Authored by mizvekov on Sep 2 2022, 8:07 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

We also mention limitations with regards to character encoding support.

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>

Diff Detail

Event Timeline

mizvekov created this revision.Sep 2 2022, 8:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 2 2022, 8:07 AM
mizvekov requested review of this revision.Sep 2 2022, 8:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 2 2022, 8:07 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaron.ballman added inline comments.
clang/docs/ClangCommandLineReference.rst
2–5

I think you might have missed this bit. ;-)

@jansvoboda11 -- do you know of an ergonomic way for people to associate extra documentation along with the command line reference to support adding documentation like this? This is the second time in the past hour I've seen people adding documentation directly to this file and the docs would be kind of onerous to put in HelpText<> directly. I'm wondering if the FE options can support something along the lines of AttrDocs.td where we can specify some out-of-line documentation in another .td for things that are nontrivial to document?

mizvekov added inline comments.Sep 2 2022, 8:26 AM
clang/docs/ClangCommandLineReference.rst
2–5

Ooops!

Why do we even commit this file then? :-)

aaron.ballman added inline comments.Sep 2 2022, 8:33 AM
clang/docs/ClangCommandLineReference.rst
2–5

+1 -- we automatically generate the document from the cmake sphinx target, so I think it's reasonable to remove this file from version control (same as we did for AttributeReference.rst and DiagnosticReference.rst).

jansvoboda11 added inline comments.Sep 6 2022, 1:06 PM
clang/docs/ClangCommandLineReference.rst
2–5

We don't have good place for extra documentation. Doing something similar to AttrDocs.td for command-line options is a good direction IMO.