diff options
| author | Reid Kleckner <reid@kleckner.net> | 2014-10-22 20:54:25 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2014-10-22 20:54:25 +0000 |
| commit | 4f9c0eeff8202dd5afa7953baac4acca9d2355d4 (patch) | |
| tree | 03535afbe7e04636049a94cd97c3e5384a11964f | |
| parent | 10d75b2f9526d05daa3b2cce8c1899972aaba2ac (diff) | |
| download | bcm5719-llvm-4f9c0eeff8202dd5afa7953baac4acca9d2355d4.tar.gz bcm5719-llvm-4f9c0eeff8202dd5afa7953baac4acca9d2355d4.zip | |
Fix up attribute documentation links to MSDN in a nicer way
llvm-svn: 220426
| -rw-r--r-- | clang/include/clang/Basic/AttrDocs.td | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td index b37a7e39567..42bc784e8bf 100644 --- a/clang/include/clang/Basic/AttrDocs.td +++ b/clang/include/clang/Basic/AttrDocs.td @@ -72,9 +72,9 @@ def ThreadDocs : Documentation { let Content = [{ The ``__declspec(thread)`` attribute declares a variable with thread local storage. It is available under the ``-fms-extensions`` flag for MSVC -compatibility. Documentation for the Visual C++ attribute is available on MSDN_. +compatibility. See the documentation for `__declspec(thread)`_ on MSDN. -.. _MSDN: http://msdn.microsoft.com/en-us/library/9w1sdazb.aspx +.. _`__declspec(thread)`: http://msdn.microsoft.com/en-us/library/9w1sdazb.aspx In Clang, ``__declspec(thread)`` is generally equivalent in functionality to the GNU ``__thread`` keyword. The variable must not have a destructor and must have @@ -698,7 +698,7 @@ On 32-bit x86 targets, the regparm attribute causes the compiler to pass the first three integer parameters in EAX, EDX, and ECX instead of on the stack. This attribute has no effect on variadic functions, and all parameters are passed via the stack as normal. -}]; + }]; } def SysVABIDocs : Documentation { @@ -707,7 +707,7 @@ def SysVABIDocs : Documentation { On Windows x86_64 targets, this attribute changes the calling convention of a function to match the default convention used on Sys V targets such as Linux, Mac, and BSD. This attribute has no effect on other targets. -}]; + }]; } def MSABIDocs : Documentation { @@ -716,7 +716,7 @@ def MSABIDocs : Documentation { On non-Windows x86_64 targets, this attribute changes the calling convention of a function to match the default convention used on Windows x86_64. This attribute has no effect on Windows targets or non-x86_64 targets. -}]; + }]; } def StdCallDocs : Documentation { @@ -726,10 +726,9 @@ On 32-bit x86 targets, this attribute changes the calling convention of a function to clear parameters off of the stack on return. This convention does not support variadic calls or unprototyped functions in C, and has no effect on x86_64 targets. This calling convention is used widely by the Windows API and -COM applications. Documentation for the Visual C++ attribute is available on -MSDN1_. +COM applications. See the documentation for `__stdcall`_ on MSDN. -.. _MSDN1: http://msdn.microsoft.com/en-us/library/zxk0tw93.aspx +.. _`__stdcall`: http://msdn.microsoft.com/en-us/library/zxk0tw93.aspx }]; } @@ -742,10 +741,9 @@ the stack on return. This convention does not support variadic calls or unprototyped functions in C, and has no effect on x86_64 targets. This calling convention is supported primarily for compatibility with existing code. Users seeking register parameters should use the ``regparm`` attribute, which does -not require callee-cleanup. Documentation for the Visual C++ attribute is -available on MSDN2_. +not require callee-cleanup. See the documentation for `__fastcall`_ on MSDN. -.. _MSDN2: http://msdn.microsoft.com/en-us/library/6xa169sk.aspx +.. _`__fastcall`: http://msdn.microsoft.com/en-us/library/6xa169sk.aspx }]; } @@ -756,10 +754,10 @@ On 32-bit x86 targets, this attribute changes the calling convention of a function to use ECX for the first parameter (typically the implicit ``this`` parameter of C++ methods) and clear parameters off of the stack on return. This convention does not support variadic calls or unprototyped functions in C, and -has no effect on x86_64 targets. Documentation for the Visual C++ attribute is -available on MSDN3_. +has no effect on x86_64 targets. See the documentation for `__thiscall`_ on +MSDN. -.. _MSDN3: http://msdn.microsoft.com/en-us/library/ek8tkfbw.aspx +.. _`__thiscall`: http://msdn.microsoft.com/en-us/library/ek8tkfbw.aspx }]; } |

