From: Erich Keane Date: Wed, 14 Feb 2018 23:00:31 +0000 (+0000) Subject: Improve documentation for attribute artificial X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e62cc5e272bb978635b29191baec8f09298f8b62;p=clang Improve documentation for attribute artificial 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 --- diff --git a/include/clang/Basic/AttrDocs.td b/include/clang/Basic/AttrDocs.td index 881c9b6daf..cc7c6ff189 100644 --- a/include/clang/Basic/AttrDocs.td +++ b/include/clang/Basic/AttrDocs.td @@ -3277,9 +3277,9 @@ or `msvc documentation `_. 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. }]; }