This option controls the visibility of friend declarations
in C++.
In C++, it controls whether or not the name of a class or
function that is declared only in friend declarations
is visible when using the normal lookup mechanisms.
When friend names are declared, they are
visible to these lookups. When friend names are
not declared as required by the standard, function names are visible
only when using argument-dependent lookup, and class names are never
visible.
Note
The option --friend_injection is provided
only as a migration aid for legacy source code that does not conform
to the C++ standard. Its use is not recommended.
Mode
This option is effective only if the source language is C++.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.