]> granicus.if.org Git - clang/commitdiff
Document our extension to constant-fold __builtin_strlen and strlen
authorDouglas Gregor <dgregor@apple.com>
Sat, 11 Sep 2010 18:08:34 +0000 (18:08 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 11 Sep 2010 18:08:34 +0000 (18:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113699 91177308-0d34-0410-b5e6-96231b3b80d8

docs/InternalsManual.html

index 6df26db8cfebcde6a6fd6c67ff3c6b3b4e6e87d7..2eee5c2507cfd5181a826f7f8a9ad160eb9366c4 100644 (file)
@@ -1682,6 +1682,7 @@ interacts with constant evaluation:</p>
     floating-point literal.</li>
 <li><b><tt>__builtin_abs,copysign,..</tt></b>: These are constant folded as
     general constant expressions.</li>
+<li><b><tt>__builtin_strlen</tt></b> and <b><tt>strlen</tt></b>: These are constant folded as integer constant expressions if the argument is a string literal.</li>
 </ul>