-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Add Documentation for Execution Results Handling in Clang-Repl #65650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@gribozavr, after this PR we will need to have |
Ping. |
@Krishna-13-cyber, can you rebase this PR? @gribozavr ping. |
f7037ce
to
001c8fe
Compare
✅ With the latest revision this PR passed the Python code formatter. |
001c8fe
to
43ee11e
Compare
43ee11e
to
b14c189
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Let's move forward.
This appears to have broken the clang-tools-extra Sphinx bot: https://lab.llvm.org/buildbot/#/builders/115/builds/54901
|
@AaronBallman, we need to install dot/doxygen on this machine as Sphinx requires graphviz. The PR has a link to the discussion and we could not find the bot owners. |
Ouch, we've struggled recently to get the attention of the sphinx bot owners. :-( The publication bot is still working: https://lab.llvm.org/buildbot/#/builders/89/builds/49495 and seems to be generating the docs for clang-tools-extra:
so I don't think we need to revert the changes here (the Clang and LLVM sphinx bots are also broken because we needed the machine to be modified by the bot owners, so there is already precedence). However, you should be aware that the sphinx publish bot does not send out email notifications when the documentation is broken -- you need to manually keep track of the state of things. We're trying to improve this situation, so I don't expect that to be a forever problem, but it's something to keep in mind. CC @LegalizeAdulthood @carlosgalvezp @njames93 for awareness as other frequent reviewers of clang-tools-extra stuff. |
This also breaks the clang standalone build. You need to |
Actually no, that's not possible as config-ix modules are explicitly private to their subproject and should not be used outside them. I'm going to revert this change due to this layering violation. |
@nikic, can you suggest a particular fix? We saw this approach was used elsewhere as well… |
You probably should just use find_program instead of llvm_find_program. It looks like llvm_find_program is used in just a single place, while we have very wide direct use of find_program, so I'm not sure why it is a thing in the first place. |
@Krishna-13-cyber, could you implement the suggestion and we can try to recommit the code. |
@@ -103,6 +103,13 @@ function (gen_rst_file_from_td output_file td_option source docs_targets) | |||
endfunction() | |||
|
|||
if (LLVM_ENABLE_SPHINX) | |||
llvm_find_program(dot) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Krishna-13-cyber, could we drop the llvm_find_program(dot)
and rely on handling the dot
discovery from llvm. This is what we do a few lines above for the case of doxygen.
#65650)" Original commit message: " Add Documentation for Execution Results Handling in Clang-Repl (#65650) [clang-repl] Add Documentation for Execution Results Handling. This patch adds documentation for execution results handling in Clang-REPL with the below features: - Automatic Printf feature - Value Synthesis feature - Pretty Printing feature Continuing this work https://reviews.llvm.org/D156858 with this PR. I am issuing this patch on behalf of Saqib. " This reverts commit ac32d7b. The new patch resolves the layering violation by simply not trying to look if `dot` was installed. This is consistent with what we do other extensions. After this patch we will need `sphinx.ext.graphviz` extension (part of the `dot` package) which is available via anyway if we build the doxygen-based documentation.
[clang-repl] Add Documentation for Execution Results Handling.
This patch adds documentation for execution results handling in Clang-REPL with
the below features:
Continuing this work https://reviews.llvm.org/D156858 with this PR. I am issuing this patch on behalf of Saqib.
Reviewers:
@vgvassilev
@junaire