Skip to content
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

added #ifndef DOXYGEN to forward declarations #8585

Merged
merged 2 commits into from Aug 18, 2019

Conversation

rezarastak
Copy link
Contributor

Forward declarations cause doxygen to report an incorrect location for the definition of a class/struct. For example, at the end of the documentation of SymmetricTensor it says

Definition at line 93 of file mpi.h.

instead of

Definition at line 555 of file symmetric_tensor.h.

This PR attempts to fix it. My first commit is a proof of concept that fixes this issue for the documentation of Tensor and SymmetricTensor. If you agree with these changes, I will add apply the same modifications to all forward declarations of all header files.

In my observation, the issue is seen only for forward-declared classes/structs. doxygen does not have a problem with forward-declared functions.

@masterleinad
Copy link
Member

Sure, go ahead. #8566 was recently going in a similar direction.

@bangerth
Copy link
Member

Do you want us to merge this as-is and follow up with potential other places separately (which I'm ok with), or do you want to include it all in this PR by pushing more changes?

@rezarastak
Copy link
Contributor Author

I am going to push more changes to the this PR.

Copy link
Member

@bangerth bangerth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, hot damn -- that turned out to be a lot of work! Thank you!

/rebuild

@masterleinad
Copy link
Member

I have no idea why this is no tested. Let's try again.
/rebuild

@masterleinad masterleinad merged commit 0bf8d49 into dealii:master Aug 18, 2019
@rezarastak rezarastak deleted the doxygen_forward_declarations branch August 19, 2019 17:08
@rezarastak rezarastak mentioned this pull request Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants