[clang] 090b2e2 - [AttrDocs] Enhance musttail attribute documentation
Dávid Bolvanský via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 6 07:52:01 PDT 2023
Author: Dávid Bolvanský
Date: 2023-04-06T16:51:33+02:00
New Revision: 090b2e27efb2bd2859913f0e9c15effe2a88982b
URL: https://github.com/llvm/llvm-project/commit/090b2e27efb2bd2859913f0e9c15effe2a88982b
DIFF: https://github.com/llvm/llvm-project/commit/090b2e27efb2bd2859913f0e9c15effe2a88982b.diff
LOG: [AttrDocs] Enhance musttail attribute documentation
Based on info from https://github.com/llvm/llvm-project/issues/54964
Added:
Modified:
clang/include/clang/Basic/AttrDocs.td
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td
index 02f0b6e622771..dae12624a822b 100644
--- a/clang/include/clang/Basic/AttrDocs.td
+++ b/clang/include/clang/Basic/AttrDocs.td
@@ -603,6 +603,9 @@ Any variables in scope, including all arguments to the function and the
return value must be trivially destructible. The calling convention of the
caller and callee must match, and they must not be variadic functions or have
old style K&R C function declarations.
+
+``clang::musttail`` provides assurances that the tail call can be optimized on
+all targets, not just one.
}];
}
More information about the cfe-commits
mailing list