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
[bad.cast], [bad.exception] nest index entries consistently #744
Conversation
Looks obviously correct to me. Ship it! :-) |
I opted not to fix this in my earlier PRs until I figured out how this was trying to hook into the implementation-defined index - which is coming up shortly on my personal todo list. |
The subitem should be just |
@zygoloid: True, but at least this PR makes it a bit more consistent. Removing the inner qualification would seem apposite, though. |
Looks like it's not only the |
Are you thinking that all members, whether they're functions or types, should just have an unqualified index entry nested under their containing class? I guess for |
I've made some cleanups in 6d3936c. The approach I took is that class member, irrespective of type, should be listed under the name of its class (the qualified name if it's a nested class) So we have an I'm not sure whether we can do better than this, thoughts appreciated. Part of the point of the library index is to indicate which names are reserved (that is, names the program can't #define before including a library header), so each name that's used should also be listed as a top-level entry; this means we'd end up with all of "failure, ios_base", "ios_base, failure", and "ios_base::failure" in the index. I'm in two minds as to whether that's excessive. |
I'm thinking "excessive"... That said, maybe the nested entries like " |
That said, we do have an index entry for |
what is a virtual function defined for many classes, while failure is a nested class with its own members. The nesting in the index indicates something quite different in these cases (and is common throughout the index). I think that Richard has the right shape above - that I what I was trying to achieve in my recent clean-up of the constructors when I fell into this hole. The additional unqualified entries sound excessive to me, but then, I don't use the index as a means to find the reserved library names, so excessive may be the right answer - in which case I like Thomas 'see xxx' solution. |
Even better. |
This adjusts the index entries for
bad_cast::what
andbad_exception::what
to be nested consistently withbad_alloc::what
andbad_array_new_length::what