Using robots to fix/update docs part 3: com.h#654
Conversation
|
|
||
| #ifdef WIL_ENABLE_EXCEPTIONS | ||
| //! COM pointer, errors throw exceptions (see @ref com_ptr_t for details) | ||
| //! COM pointer, errors throw exceptions (see @ref wil::com_ptr_t for details) |
There was a problem hiding this comment.
Interesting; the docs system doesn't know about namespaces?
There was a problem hiding this comment.
Okay, so apparently this is related to the change in #655 that pulled the end-of-wil-namespace curly brace outside of the @endcond comment. So, with that fix, the explicit namespace here is not necessary - Doxygen resolves the namespaces correctly.
And apparently, even without the explicit namespace here, Doxygen will make an educated guess based off which types are documented, so previously it was just a warning; the HTML was still the same and the links worked.
The net impact of this change is that the HTML now mentions wil::com_ptr_t instead of com_ptr_t. I guess it's personal preference which one you like more - since this is all documentation for WIL, the explicit wil namespace is a bit unnecessary.
I'll complete that PR first and then tidy this one up to remove the explicit namespaces and verify that the warnings are gone.
| m_stream.reset(); | ||
| } | ||
|
|
||
| //! Move constructor; transfers the saved stream position. |
There was a problem hiding this comment.
Are these comments necessary? Maybe put a better comment on the type itself, so what these methods do is implied?
There was a problem hiding this comment.
Yeah, probably. I'll have it update the skill to wrap things like this w/ @cond/@endcond, though that means these constructors are no longer mentioned in the docs, which is probably fine.
There was a problem hiding this comment.
So, without comments, Doxygen will emit a warning, so there's effectively two options:
- Add docs to these declarations
- Wrap the declarations with
begincond/endcond
I've changed to just wrapping with begincond/endcond. The "downside" is that these won't appear in the generated docs at all, even as undocumented. But given we can probably count the number of people using Doxygen with WIL on 0-1 hands, probably not a big deal to just omit them.
|
Interesting... Another NotifyPropertyChanged failure... seems I didn't completely fix it |
See #652 for more info on the effort