From 8dcf1c654ed4e95a618868d4fab11af2068a1471 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 30 Oct 2019 11:36:44 -0400 Subject: [PATCH] Updating the documentation for the _Noreturn attribute; NFC. --- clang/include/clang/Basic/AttrDocs.td | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td index 9d0d27407573..3a9093124637 100644 --- a/clang/include/clang/Basic/AttrDocs.td +++ b/clang/include/clang/Basic/AttrDocs.td @@ -258,7 +258,9 @@ def C11NoReturnDocs : Documentation { let Content = [{ A function declared as ``_Noreturn`` shall not return to its caller. The compiler will generate a diagnostic for a function declared as ``_Noreturn`` -that appears to be capable of returning to its caller. +that appears to be capable of returning to its caller. Despite being a type +specifier, the ``_Noreturn`` attribute cannot be specified on a function +pointer type. }]; }