diff options
author | Shoaib Meenai <smeenai@fb.com> | 2017-07-13 20:47:24 +0000 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2017-07-13 20:47:24 +0000 |
commit | 982060b0a484ee7ad6628c0273b78f951e486baa (patch) | |
tree | f1971fe394e74f0521405b95c6ccc2a3810189ac /libcxx/docs/DesignDocs | |
parent | 5af07f5c1ee12bb7b6aa973888157b5043456246 (diff) | |
download | bcm5719-llvm-982060b0a484ee7ad6628c0273b78f951e486baa.tar.gz bcm5719-llvm-982060b0a484ee7ad6628c0273b78f951e486baa.zip |
[libc++] Use proper template terminology. NFC
It's supposed to be "class template" and "function template" instead of
"template class" and "template function".
llvm-svn: 307954
Diffstat (limited to 'libcxx/docs/DesignDocs')
-rw-r--r-- | libcxx/docs/DesignDocs/VisibilityMacros.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/docs/DesignDocs/VisibilityMacros.rst b/libcxx/docs/DesignDocs/VisibilityMacros.rst index 694882dd263..20665cd8021 100644 --- a/libcxx/docs/DesignDocs/VisibilityMacros.rst +++ b/libcxx/docs/DesignDocs/VisibilityMacros.rst @@ -90,13 +90,13 @@ Visibility Macros The macro has an empty definition with GCC. **Windows Behavior**: `extern template` and `dllexport` are fundamentally - incompatible *on a template class* on Windows; the former suppresses + incompatible *on a class template* on Windows; the former suppresses instantiation, while the latter forces it. Specifying both on the same - declaration makes the template class be instantiated, which is not desirable + declaration makes the class template be instantiated, which is not desirable inside headers. This macro therefore expands to `dllimport` outside of libc++ but nothing inside of it (rather than expanding to `dllexport`); instead, the explicit instantiations themselves are marked as exported. Note that this - applies *only* to extern template *classes*. Extern template *functions* obey + applies *only* to extern *class* templates. Extern *function* templates obey regular import/export semantics, and applying `dllexport` directly to the extern template declaration is the correct thing to do for them. |