Lines Matching defs:__counted_by
4 #define __counted_by(f) __attribute__((counted_by(f)))
10 struct bar *fam[] __counted_by(bork); // expected-error {{use of undeclared identifier 'bork'}}
18 int array[] __counted_by(count); // expected-error {{'counted_by' field 'count' isn't within the same struct as the annotated flexible array}}
26 int array[] __counted_by(count); // expected-error {{'counted_by' field 'count' isn't within the same struct as the annotated flexible array}}
36 int array[] __counted_by(count); // expected-error {{'counted_by' field 'count' isn't within the same struct as the annotated flexible array}}
47 int array[] __counted_by(count); // expected-error {{use of undeclared identifier 'count'}}
58 int array[] __counted_by(count); // expected-error {{use of undeclared identifier 'count'}}
67 int array[] __counted_by(count); // expected-error {{use of undeclared identifier 'count'}}
72 struct bar *fam[] __counted_by(blork); // expected-error {{use of undeclared identifier 'blork'}}
79 struct bar *fam[] __counted_by(global); // expected-error {{field 'global' in 'counted_by' not inside structure}}
86 struct bar *self[] __counted_by(self);
91 struct bar *fam[] __counted_by(dbl_count); // expected-error {{'counted_by' requires a non-boolean integer type argument}}
96 struct bar *fam[] __counted_by(integers); // expected-error {{'counted_by' requires a non-boolean integer type argument}}
102 struct bar *non_fam __counted_by(count);
107 struct bar *non_c99_fam[0] __counted_by(count); // expected-error {{'counted_by' on arrays only applies to C99 flexible array members}}
114 int array[] __counted_by(crount); // expected-error {{use of undeclared identifier 'crount'}}
119 // __counted_by on a struct VLA with element type that has unknown size
127 struct size_unknown buf[] __counted_by(count);
134 const struct size_unknown buf[] __counted_by(count);
141 void buf[] __counted_by(count);
149 fn_ty* buf[] __counted_by(count);
157 fn_ty buf[] __counted_by(count);
174 char buffer[] __counted_by(count);
181 struct has_unannotated_VLA Arr[] __counted_by(count);
189 struct has_annotated_VLA Arr[] __counted_by(count);
197 const struct has_annotated_VLA Arr[] __counted_by(count);