[llvm] r217583 - [docs] Mention character array constants in docs/LangRef.rst
Daniel Sanders
daniel.sanders at imgtec.com
Thu Sep 11 05:03:00 PDT 2014
Author: dsanders
Date: Thu Sep 11 07:02:59 2014
New Revision: 217583
URL: http://llvm.org/viewvc/llvm-project?rev=217583&view=rev
Log:
[docs] Mention character array constants in docs/LangRef.rst
Summary:
They were used in the 'Module Structure' example but weren't otherwise
documented.
Credit to Reed Kotler for noticing.
Reviewers: hans
Reviewed By: hans
Subscribers: hans, llvm-commits
Differential Revision: http://reviews.llvm.org/D5191
Modified:
llvm/trunk/docs/LangRef.rst
Modified: llvm/trunk/docs/LangRef.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.rst?rev=217583&r1=217582&r2=217583&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.rst (original)
+++ llvm/trunk/docs/LangRef.rst Thu Sep 11 07:02:59 2014
@@ -2276,7 +2276,9 @@ constants and smaller complex constants.
square brackets (``[]``)). For example:
"``[ i32 42, i32 11, i32 74 ]``". Array constants must have
:ref:`array type <t_array>`, and the number and types of elements must
- match those specified by the type.
+ match those specified by the type. As a special case, character array
+ constants may also be represented as a double-quoted string using the ``c``
+ prefix. For example: "``c"Hello World\0A\00"``".
**Vector constants**
Vector constants are represented with notation similar to vector
type definitions (a comma separated list of elements, surrounded by
More information about the llvm-commits
mailing list