Skip to content

Commit

Permalink
[AttrDocs] Enhance musttail attribute documentation
Browse files Browse the repository at this point in the history
Based on info from #54964
  • Loading branch information
davidbolvansky committed Apr 6, 2023
1 parent f605924 commit 090b2e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clang/include/clang/Basic/AttrDocs.td
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}];
}

Expand Down

0 comments on commit 090b2e2

Please sign in to comment.