GabrielDosReis / ipr

Compiler-neutral Internal Program Representation for C++
BSD 3-Clause "New" or "Revised" License
222 stars 23 forks source link

using-declaration as directive #196

Closed GabrielDosReis closed 2 years ago

GabrielDosReis commented 2 years ago

This patch adds support for ISO C++ using-declaration, modeled in the IPR as belonging to the category ipr::Directive.

A using-declaration is an directive to a C++ compiler for perform lookup on certain qualified-id s and introduce synonymous declarations, subject to certain constraints. The common case of a single using-declarator in a using-declaration has a dedicated, more efficient implementation than the generic case of using-declarator-list of cardinality more than 1.