From: Douglas Gregor Date: Sat, 11 Sep 2010 18:08:34 +0000 (+0000) Subject: Document our extension to constant-fold __builtin_strlen and strlen X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb661ed531667bfcb456af4ca9b5f19b29afa0d7;p=clang Document our extension to constant-fold __builtin_strlen and strlen git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113699 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/InternalsManual.html b/docs/InternalsManual.html index 6df26db8cf..2eee5c2507 100644 --- a/docs/InternalsManual.html +++ b/docs/InternalsManual.html @@ -1682,6 +1682,7 @@ interacts with constant evaluation:

floating-point literal.
  • __builtin_abs,copysign,..: These are constant folded as general constant expressions.
  • +
  • __builtin_strlen and strlen: These are constant folded as integer constant expressions if the argument is a string literal.