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

[language.support] review library indexing of clause 18 #840

Closed
wants to merge 1 commit into from

Conversation

AlisdairM
Copy link
Contributor

This change consistently applies to new indexlibrarymember
macro in places missed by the first pass - mostly for cases
where either the class or member-name has an underscore.

It consistently uses the notation of {class}{member} when
using the new macro. This is purely a consistency concern,
as the macro will expand to the same results either way.

It consistently uses a % to eliminate potential whitespace
being introduced by an index entry macro.

It removes a duplicate entry for 'numeric_limits' causes
by the use of the _ command. This appears to be the
correct fix, on inspection of the index. The alternative
would have been consistent use of _ on every numeric_limits
entry, so trying the simpler fix first.

This change consistently applies to new indexlibrarymember
macro in places missed by the first pass - mostly for cases
where either the class or member-name has an underscore.

It consistently uses a % to eliminate potential whitespace
being introduced by an index entry macro.

It removes a duplicate entry for 'numeric_limits' causes
by the use of the \_ command.  This appears to be the
correct fix, on inspection of the index.  The alternative
would have been consistent use of \_ on every numeric_limits
entry, so trying the simpler fix first.
@tkoeppe
Copy link
Contributor

tkoeppe commented Jul 21, 2016

Hang on, there are more of these issues. The problem was that I only searched for things ending in a %, so there's more coming. I'll fix it and let you know so you can rebase.

@AlisdairM
Copy link
Contributor Author

OK.

Just so you know what I am looking at: I plan to perform a clause-by-clause review, as time permits, checking every itemdecl has an index entry, and all index entries have a trailing %. For good measure, I will promote existing members to indexlibrarymember if they are not already (i.e., were not duplicated to begin with).

If I find more entries introduced by codeblock rather than itemdecl, I will fix those too - but I don't have an easy way to audit for those - that is more spot it by luck as I go.

@tkoeppe
Copy link
Contributor

tkoeppe commented Jul 21, 2016

Rebase please! :-)

@AlisdairM
Copy link
Contributor Author

OK - it looks like the overwhelming majority of uses of indexlibrarymember are:
\indexlibrarymember{member}{class}
rather than
\indexlibrarymember{class}{member}

While the latter is my preference, I will apply the former consistently (distinctly fewer changes), and make that part of my clause-by-clause audit.

@tkoeppe
Copy link
Contributor

tkoeppe commented Jul 21, 2016

It doesn't matter at all; either version works. I just went with the search-and-replace that was easy (picking the first line). If you're enjoying this sort of no-op work, feel free to switch the arguments around :-)

@AlisdairM
Copy link
Contributor Author

I would rather have a consistency (it aids later tooling - if any) and want to minimize churn on make-work tasks - some folks may be sensitive to the doc history, It seems putting a class second (unlike when handling constructor/destructor) is the default, based on the pre-existing order when you ran your regex.

@tkoeppe
Copy link
Contributor

tkoeppe commented Jul 21, 2016

Well, I think the only thing that's consistent so far is that nothing is consistent :-) The previous commit, which used the same regex, had it the other way round. I really don't care whether a) we do anything at all or b) which way round you make it; do whatever you think is useful.

@tkoeppe
Copy link
Contributor

tkoeppe commented Jul 21, 2016

Are you reusing this PR?

@tkoeppe
Copy link
Contributor

tkoeppe commented Jul 24, 2016

Please reopen when it's ready.

@tkoeppe tkoeppe closed this Jul 24, 2016
@AlisdairM AlisdairM deleted the review_clause_18_index branch August 8, 2016 14:17
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.

None yet

2 participants