-
-
Notifications
You must be signed in to change notification settings - Fork 664
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
DOC: Fix unbalanced grouping commands Doxygen warnings #3805
base: master
Are you sure you want to change the base?
DOC: Fix unbalanced grouping commands Doxygen warnings #3805
Conversation
I checked the However, The pattern that we require to solve the Doxygen issues (that ITK/Utilities/Doxygen/itkgroup.pl Line 2 in 047fa69
@hjmjohnson @thewtex @dzenanz any suggestion on how we could work around this without having to recur to turning it on/off on each of these lines? The other hypothesis is that the variable values in this condition ITK/Utilities/Doxygen/itkgroup.pl Line 68 in 047fa69
or the condition itself should be modified. Maybe the Another possibility would be to submit only the changes that make |
It feels like we should update clang format style to allow the changes proposed here. I am not sure whether that can accomplish it. |
I am running the build script with doxygen updated to 1.9.5, so we don't have to wait until tomorrow to see the updated output. |
Looks like there may be a way: |
The second suggestion would require us to move to a newer |
Doxygen 1.9.5 produces 100+ new warnings of style: Generating docDocumentation/Doxygen/NeighborhoodIterators.dox:96: warning: Unexpected token TK_HTMLTAG found as part of a title section. All warnings here. @jhlegarreta should we keep this version? |
😓 I would keep the old version for now then. I would upgrade to the newer version once we have managed to fix the current warnings (which are still present in the new version). |
I just reverted doxygen to 1.8.16. |
Looks like our @hjmjohnson Do you happen to know the |
Adding /** Sets the value of the image buffer at the current index value to the
* specified value. */
void
SetPixelValue(InternalPixelType * const imageBufferPointer, const PixelType & pixelValue) const noexcept
{
m_NeighborhoodAccessor.Set(imageBufferPointer + m_PixelIndexValue, pixelValue);
}
}; // end of class This is an excerpt from ITK\Modules\Core\Common\include\itkBufferedImageNeighborhoodPixelAccessPolicy.h, near the end. |
#3805 (comment) OK, I was thinking about the namespace ending. I can do this, but I do not think we are willing to have this as a long-term solution. @thewtex @blowekamp @hjmjohnson any thoughts? |
Another approach could replace itkdoxygen.pl with a Python script 🐍 |
The problem is rather clang-format disliking the insertion of a blank line before the end of class closing bracket line without the latter having an inline comment. |
Can we remove the insertion of the blank line in the Python script migration? |
It should rather be introduced: I do not have the bandwidth to translate the script into Python. Alternatives:
|
Do you think the below approach plugged right after ITK/Utilities/Doxygen/itkgroup.pl Line 67 in 23da3df
can be made to work?
so that we can get the result in #3805 (comment) without needing to add @thewtex @tbirdso maybe one of you is skilled at Perl to give that a try? Thanks. |
I still think that moving to latest stable |
Would that fix the issue here ? Isn't the config itself, rather than the clang-format version, what might help ? |
The current version ignores (does not support) the config setting we need. As per this SO answer, we need We already have MaxEmptyLinesToKeep: 2 in our config, and that is not enough. |
#3805 (comment) OK, then +100 for upgrading. @hjmjohnson ? |
@jhlegarreta I trust the judgment of those who have invested time into this PR. I will not have time to review it carefully. |
Cross-referencing InsightSoftwareConsortium/ITKClangFormatLinterAction#3. |
Fix unbalanced grouping commands Doxygen warnings. Fixes: ``` Modules/Core/Common/include/itkAutoPointer.h:261: warning: unbalanced grouping commands ``` warnings across classes. The warning is raised when the Utilities/Doxygen/itkdoxygen.pl Doxygen Perl script processes the files at issue and starts a `/**@{` block that gets interrupted by an unexpected symbol (e.g. a brace) without being previously closed with the corresponding `/**@}*/` ending token. Raised for example in: https://open.cdash.org/viewBuildError.php?type=1&buildid=8344134
4293d83
to
dba1d67
Compare
Fix unbalanced grouping commands Doxygen warnings.
Fixes:
warnings across classes.
The warning is raised when the
Utilities/Doxygen/itkdoxygen.pl
Doxygen Perl script processes the files at issue and starts a
/**@{
block that gets interrupted by an unexpected symbol (e.g. a brace) without being previously closed with the corresponding/**@}*/
ending token.Raised for example in:
https://open.cdash.org/viewBuildError.php?type=1&buildid=8344134
PR Checklist