aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Cutil.mli
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2015-04-28 13:17:30 +0200
committerXavier Leroy <xavier.leroy@inria.fr>2015-04-28 13:17:30 +0200
commit74c3e0e8615c2d943eae813b82b11cbfe74d4a82 (patch)
tree1901feb7ca3bc0e2f293b21c582e52b69a84c61f /cparser/Cutil.mli
parent916bfc0c4f2a025e9aa642cf616cd8c6ace4ec70 (diff)
downloadcompcert-kvx-74c3e0e8615c2d943eae813b82b11cbfe74d4a82.tar.gz
compcert-kvx-74c3e0e8615c2d943eae813b82b11cbfe74d4a82.zip
Detect and reject "&" operator applied to "register" local variable or to a bit field.
Diffstat (limited to 'cparser/Cutil.mli')
-rw-r--r--cparser/Cutil.mli4
1 files changed, 4 insertions, 0 deletions
diff --git a/cparser/Cutil.mli b/cparser/Cutil.mli
index 9d41f8fa..b1f77944 100644
--- a/cparser/Cutil.mli
+++ b/cparser/Cutil.mli
@@ -195,6 +195,10 @@ val fundef_typ: fundef -> typ
val int_representable: int64 -> int -> bool -> bool
(* Is the given int64 representable with the given number of bits and
signedness? *)
+val field_of_dot_access: Env.t -> typ -> string -> field
+ (* Return the field info for a [x.field] access *)
+val field_of_arrow_access: Env.t -> typ -> string -> field
+ (* Return the field info for a [x->field] access *)
(* Constructors *)