Comments (3)
Hey,
Thanks again for the report. This one is a tricky one, it seems that comments above a namespace are associated with that namespace but as there is only one central representation of the namespace in the xml files then multiple comments from multiple source files are concatenated into the same "briefdescription"/"detaileddescription" pair in that xml file.
One hacky way to avoid this is to make the comment a file level comment, in which case it appears above the namespace in the breathe output but only appears for the correct file referenced by doxygenfile directive. So your example would look like:
#ifndef SOME_INCLUDE_GUARD
#define SOME_INCLUDE_GUARD
#include <secret_nuclear_launch_codes.hpp>
/** \file TheFile.hpp
THESE ARE THE COMMENTS I'M TALKING ABOUT
*/
namespace foo {
...etc...
I'm not aware of a better solution at the moment. We could try to introduce one, possibly by having some kind of labelling mechanism to specify the original of the comment but that will clutter up your comments a little.
I haven't build your project yet, though I'm curious to as it looks like an interesting idea. I'll try to do that but I suspect if you find the equivalent of namespacefoo.xml from your example you'll see all the comment concatenated with no clear way of separating them on a per file basis. If you see something we could use please say.
Sorry not to be more helpful, I'll try to take another look at the weekend,
Michael
from breathe.
Hmmm...this sounds like a case of user-error. I should probably be using the "\file" qualifier since that's what I really mean; it sounds like breathe is doing the right thing wrt namespace comments.
I'm happy to consider this issue closed. If "\file" doesn't work, then that would be a different issue.
from breathe.
Cool, thanks for closing it!
from breathe.
Related Issues (20)
- Sphinx 7.2 support HOT 2
- AttributeError: 'PosixPath' object has no attribute 'rstrip' in breathe/project.py HOT 4
- Drop EOL python 3.7?
- Missing `python` version for dependency management
- Wrong required python version 3.6+
- GH Actions: broken unit test
- Issue with dispaly of notes in sphinx documentation HOT 1
- Support Sphinx ToC generation with `_toc_name` and `_toc_parts` attribute
- Provide some diagnostic warnings if references to functions are missing parentheses HOT 1
- En-dash in @return renders incorrectly
- Duplicate declaration/description warnings HOT 1
- Add make.bat for building breathe's documentation on Windows HOT 1
- Duplicate C++ declaration with nested anonymous structure
- `RemovedInSphinx80Warning` in `ProjectInfoFactory.__init__`
- Test suite does not pass against Sphinx 7.2.6
- Automatic way to generate `.rst` files from doxygen xml HOT 1
- `Doxygenclass` is empty
- Breathe breaks with sphinx 7.3.X HOT 3
- Referencing a ```doxygengroup```
- Sphinx 8 will drop support for representing paths as strings. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from breathe.