Extend using declaration to support list of members #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
C++17 and up allows a list of members to be imported:
Source - https://en.cppreference.com/w/cpp/language/namespace.html
Currently, the cpp parser behaves inconsistently:
Honestly, I don't know how it even parses it at all right now, but I replaced
ScopedIdentifierwith a new simple comma-separated listScopedIdentiferListfor theUsingDeclaration, and now both member names are recognised astok-variableNames.Attached patch fixes this in a more idiomatic way (and without breaking the tests).
Pull request closed