]> granicus.if.org Git - clang/commitdiff
Fix up attribute documentation links to MSDN in a nicer way
authorReid Kleckner <reid@kleckner.net>
Wed, 22 Oct 2014 20:54:25 +0000 (20:54 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 22 Oct 2014 20:54:25 +0000 (20:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220426 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/AttrDocs.td

index b37a7e3956753a12716e19d8ccafc7c124a3124a..42bc784e8bfecf891ec92c21cb2203a6ac3a988e 100644 (file)
@@ -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
   }];
 }