Skip to content
Snippets Groups Projects
Commit 67ffcaaf authored by Ted Kremenek's avatar Ted Kremenek
Browse files

Document the presence of the new Objective-C++ mangling for qualified-id.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192670 91177308-0d34-0410-b5e6-96231b3b80d8
parent 5eed7e00
No related branches found
No related tags found
No related merge requests found
...@@ -1256,6 +1256,21 @@ Query for these features with ``__has_attribute(ns_consumed)``, ...@@ -1256,6 +1256,21 @@ Query for these features with ``__has_attribute(ns_consumed)``,
``__has_attribute(ns_returns_retained)``, etc. ``__has_attribute(ns_returns_retained)``, etc.
Objective-C++ ABI: protocol-qualifier mangling of parameters
------------------------------------------------------------
Starting with LLVM 3.4, Clang produces a new mangling for parameters whose
type is a qualified-``id`` (e.g., ``id<Foo>``). This mangling allows such
parameters to be differentiated from those with the regular unqualified ``id``
type.
This was a non-backward compatible mangling change to the ABI. This change
allows proper overloading, and also prevents mangling conflicts with template
parameters of protocol-qualified type.
Query the presence of this new mangling with
``__has_feature(objc_protocol_qualifier_mangling)``.
Function Overloading in C Function Overloading in C
========================= =========================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment