-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add a way to get current namespace and class in C++ domain #2070
Comments
The current scope is already tracked, but in which way do you plan to use the information? |
I must have missed the current scope. Under what key in domaindata is it in? I'm using the information to have some better context-sensitive autodoc (e.g. taking into consideration the current namespace). |
It is stored in |
Well at the bare minimum it'd be nice to have something like the python domain has (e.g. So in C++'s case we would have e.g. .https://github.com/sphinx-doc/sphinx/blob/master/sphinx/domains/python.py#L313 |
From the
|
Closing for now as the functionality essentially is there, but may be a bit complicated to use. Please reopen if it becomes relevant to access it. |
Hello.
The python domain has a way to get the current module and current class to help facilitate with the
autodoc
extension. It would be nice if the C++ domain had something similar to help facilitate similar tools.I believe the implementation for it should be fairly straightforward (just store it under
domaindata
) but I am not sure if it's a desirable feature. I would appreciate it since I'm working on an autodoc tool for C++ so there is some personal bias on my part.The text was updated successfully, but these errors were encountered: