Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Documentation formatting fixes #2396

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

Merged
merged 2 commits into from
Jun 3, 2014
Merged

Documentation formatting fixes #2396

merged 2 commits into from
Jun 3, 2014

Conversation

carlosmn
Copy link
Member

@carlosmn carlosmn commented Jun 2, 2014

Stuff I found while trying to get the clang version of docurium to display docs better.

I'm not sure if the idxentry changes will affect much, since we should be accepting ints anyway.

GIT_IDXENTRY_EXTENDED = (0x4000),
GIT_IDXENTRY_VALID = (0x8000),
GIT_IDXENTRY_STAGESHIFT = 12
} git_idxentry_flags;
Copy link
Member

Choose a reason for hiding this comment

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

To me, these masks are a very strange thing to put into an enum. I would almost rather change the docs than do this, because I think defining them in this way is more likely to cause confusion for most C users...

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah... the thing is that defines aren't actually part of the AST, so clang won't attach any comments to them, which means we won't show them in docurium. This is a way of working around it.

I'm not sure how to work around this other than going back to regex for defines, which I guess wouldn't be the worst thing.

We should probably check to see if these flags is what we should be using externally, since IIRC we provide methods to grab the data out either way.

Copy link
Member Author

Choose a reason for hiding this comment

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

After looking more closely, we can extract VALID and EXTENDED into their own flags enum, and the rest go into an extended flags enum, which do represent how we do things elsewhere.

@arrbee
Copy link
Member

arrbee commented Jun 2, 2014

Apart from that comment about the masks, ✨ from me!

carlosmn added 2 commits June 3, 2014 16:05
These are some issues I found while playing around with the new parser
for docurium.
The documentation has shown this as a single enum for a long time. These
should in fact be two enums. One with the bits for the flags and another
with the bits for the extended flags.
vmg pushed a commit that referenced this pull request Jun 3, 2014
Documentation formatting fixes
@vmg vmg merged commit eb27d29 into development Jun 3, 2014
@vmg
Copy link
Member

vmg commented Jun 3, 2014

Looks good with the split.

@nulltoken nulltoken deleted the cmn/docstuff branch June 4, 2014 07:12
phatblat pushed a commit to phatblat/libgit2 that referenced this pull request Sep 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants