]> granicus.if.org Git - clang/commitdiff
Improve documentation for attribute artificial
authorErich Keane <erich.keane@intel.com>
Wed, 14 Feb 2018 23:00:31 +0000 (23:00 +0000)
committerErich Keane <erich.keane@intel.com>
Wed, 14 Feb 2018 23:00:31 +0000 (23:00 +0000)
This patch is related to https://reviews.llvm.org/rC325081

The patch improves documentation for the attribute and removes reference to GCC
documentation.

Patch By: Elizabeth Andrews (eandrews)
Differential Revision: https://reviews.llvm.org/D43321

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@325186 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/AttrDocs.td

index 881c9b6dafb28317a138b750c974257d93d9ffb7..cc7c6ff1898f8944b338c01e39091386f5b2c0fb 100644 (file)
@@ -3277,9 +3277,9 @@ or `msvc documentation <https://docs.microsoft.com/pl-pl/cpp/cpp/selectany>`_.
 def ArtificialDocs : Documentation {
   let Category = DocCatFunction;
   let Content = [{
-The ``artificial`` attribute is used with inline functions to treat the inline 
-function as a unit while debugging. For more information see GCC_ documentation.
-
-.. _GCC: https://gcc.gnu.org/onlinedocs/gcc-4.6.4/gcc/Function-Attributes.html
+The ``artificial`` attribute can be applied to an inline function. If such a
+function is inlined, the attribute indicates that debuggers should associate
+the resulting instructions with the call site, rather than with the 
+corresponding line within the inlined callee.
   }];
 }