r220426 - Fix up attribute documentation links to MSDN in a nicer way

Reid Kleckner reid at kleckner.net
Wed Oct 22 13:54:25 PDT 2014


Author: rnk
Date: Wed Oct 22 15:54:25 2014
New Revision: 220426

URL: http://llvm.org/viewvc/llvm-project?rev=220426&view=rev
Log:
Fix up attribute documentation links to MSDN in a nicer way

Modified:
    cfe/trunk/include/clang/Basic/AttrDocs.td

Modified: cfe/trunk/include/clang/Basic/AttrDocs.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/AttrDocs.td?rev=220426&r1=220425&r2=220426&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/AttrDocs.td (original)
+++ cfe/trunk/include/clang/Basic/AttrDocs.td Wed Oct 22 15:54:25 2014
@@ -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 attri
 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 ch
 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 doe
 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 ch
 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
   }];
 }
 





More information about the cfe-commits mailing list