7.71 --friend_injection, --no_friend_injection

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.


The option --friend_injection is provided only as a migration aid for legacy source code that does not conform to the C++ standard. ARM does not recommend its use.


This option is effective only if the source language is C++.


The default is --no_friend_injection.
Related reference
8.27 friend
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.