[18,19] Add and use new indexlibrarymember macro #835
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a new macro, indexlibrarymember, that takes two arguments,
a class-name and a member name, which creates two index entries
for:
class-name, member
and
member, class-name
This should simplify many such double-declarations in the
library clauses, and reduce errors of inconsistency. It
will also ease fixing up existing index entries that were
(accidentally) not doubled up.
Ths new macro is applied consistently throughout clauses
18 and 19 as a proof-of-concept, and follow-up patches
will deal with successive library clauses. This is
deliberately broken up to ease the review burden.
Finally, some minor consistency issues regarding use of
% to ensure index macros are not consuming unexpected
whitespace.