aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Cutil.mli
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2018-08-21 19:06:45 +0200
committerXavier Leroy <xavierleroy@users.noreply.github.com>2018-08-24 09:26:50 +0200
commitbc8046564b345281024d5f40f59d012ba92cdb4b (patch)
tree56fe7a5b2ac82fdfb4ed63fdba6447f15782b29d /cparser/Cutil.mli
parent7f6bd2f39e66cb0704b526d0450845cd0234e0c9 (diff)
downloadcompcert-kvx-bc8046564b345281024d5f40f59d012ba92cdb4b.tar.gz
compcert-kvx-bc8046564b345281024d5f40f59d012ba92cdb4b.zip
Add check for _Alignas attribute.
The check tests whether the standard _Alignas is contained within a given attribute list. Bug 23391
Diffstat (limited to 'cparser/Cutil.mli')
-rw-r--r--cparser/Cutil.mli2
1 files changed, 2 insertions, 0 deletions
diff --git a/cparser/Cutil.mli b/cparser/Cutil.mli
index 491551a4..56b09e1d 100644
--- a/cparser/Cutil.mli
+++ b/cparser/Cutil.mli
@@ -57,6 +57,8 @@ val erase_attributes_type : Env.t -> typ -> typ
(* Erase the attributes of the given type. *)
val change_attributes_type : Env.t -> (attributes -> attributes) -> typ -> typ
(* Apply the given function to the top-level attributes of the given type *)
+val has_std_alignas : attributes -> bool
+ (* Do the attributes contain the C11 _Alignas *)
type attribute_class =
| Attr_name (* Attribute applies to the names being declared *)