From bc8046564b345281024d5f40f59d012ba92cdb4b Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Tue, 21 Aug 2018 19:06:45 +0200 Subject: Add check for _Alignas attribute. The check tests whether the standard _Alignas is contained within a given attribute list. Bug 23391 --- cparser/Cutil.mli | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cparser/Cutil.mli') 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 *) -- cgit