aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Cutil.ml
diff options
context:
space:
mode:
Diffstat (limited to 'cparser/Cutil.ml')
-rw-r--r--cparser/Cutil.ml5
1 files changed, 2 insertions, 3 deletions
diff --git a/cparser/Cutil.ml b/cparser/Cutil.ml
index 8b6d5e32..4b69c95e 100644
--- a/cparser/Cutil.ml
+++ b/cparser/Cutil.ml
@@ -124,9 +124,8 @@ let attr_is_standard = function
(* Is an attribute applicable to a whole array (true) or only to
array elements (false)? *)
-let attr_array_applicable = function
- | AConst | AVolatile | ARestrict | AAlignas _ -> false
- | Attr _ -> true
+let attr_array_applicable a =
+ class_of_attribute a <> Attr_type
(* Is an attribute of a composite type applicable to members of this type
when they are accessed? *)