diff options
author | Xavier Leroy <xavierleroy@users.noreply.github.com> | 2022-09-19 16:37:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-19 16:37:17 +0200 |
commit | 994c6c34182606385140e5695e33c90507ce59ee (patch) | |
tree | e9291d64997dd3e2ac8660c0e6fbe1b9a597799e /cparser/C.mli | |
parent | 103aa7074a9dd3b1bcb2864d52c89292a2ab7bff (diff) | |
download | compcert-994c6c34182606385140e5695e33c90507ce59ee.tar.gz compcert-994c6c34182606385140e5695e33c90507ce59ee.zip |
Support C11 Unicode string literals and character constants (#452)
* Support C11 Unicode string literals and character constants
* Add tests for C11 string literals and character constants
* Better error message for ill-formed universal character names
E.g. \u followed by fewer than 4 hex digits, or \U followed by fewer than 8 hex digits.
* Add new warning `invalid-utf8` for byte sequences that are not valid UTF8.
The warning is activated but not fatal by default.
* Warn on uses of C11 Unicode character constants and string literals
This uses the `c11-extensions` warning, which is off by default.
* Support preprocessing option -finput-charset= for GNU toolchains
Diffstat (limited to 'cparser/C.mli')
-rw-r--r-- | cparser/C.mli | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cparser/C.mli b/cparser/C.mli index 763a9277..1388fab9 100644 --- a/cparser/C.mli +++ b/cparser/C.mli @@ -64,7 +64,7 @@ type constant = | CInt of int64 * ikind * string (* as it appeared in the source *) | CFloat of float_cst * fkind | CStr of string - | CWStr of int64 list + | CWStr of int64 list * ikind | CEnum of ident * int64 (* enum tag, integer value *) (** Attributes *) |