Home | History | Annotate | Download | only in lint1

Lines Matching defs:ck

105 check_bit(checker *ck, uint64_t dir_lsb, uint64_t width,
108 unsigned lsb = (unsigned)(ck->new_style ? dir_lsb : dir_lsb - 1);
114 if (ck->covered & field_mask & bit(i)) {
118 ck->covered_len[i], ck->covered_start[i],
119 ck->new_style ? i : i + 1);
124 ck->covered |= field_mask;
127 ck->covered_start[i] = start;
128 ck->covered_len[i] = len;
132 if (!(ck->possible_value_bits & field_mask))
138 parse_description(checker *ck, const quoted_iterator *dir)
141 quoted_iterator it = ck->it;
142 uint64_t end_marker = ck->new_style ? 0 : 32;
144 while (quoted_next(ck->fmt, &it) && it.value > end_marker) {
145 ck->it = it;
151 len(it), start(it, ck->fmt),
152 range(*dir, it), start(*dir, ck->fmt));
158 check_conversion(checker *ck)
160 bool new_style = ck->new_style;
161 const buffer *fmt = ck->fmt;
162 quoted_iterator *it = &ck->it;
217 bool seen_descr = parse_description(ck, &dir);
219 && quoted_next(ck->fmt, &ck->it) && ck->it.value == 0;
222 ck->field_kind = (char)dir.value;
223 if (ck->field_kind != '\0'
224 && ((dir.value == '=' && ck->field_kind != 'f')
225 || (dir.value == ':' && ck->field_kind != 'F')))
227 warning(386, len(dir), start(dir, fmt), ck->field_kind);
256 if (has_cmp && ck->field_width > 0 && ck->field_width < 64
257 && cmp.value & ~value_bits((unsigned)ck->field_width))
260 (uintmax_t)value_bits((unsigned)ck->field_width));
262 check_bit(ck, bit.value, has_width ? width.value : 1,
263 ck->fmt->data + dir.start, (int)(it->end - dir.start));
272 ck->field_width = width.value;
296 checker ck = {
302 if (!quoted_next(fmt, &ck.it)) {
307 ck.new_style = ck.it.value == '\177';
308 if (ck.new_style && !quoted_next(fmt, &ck.it)) {
313 if (ck.it.value != 8 && ck.it.value != 10 && ck.it.value != 16) {
315 warning(361, len(ck.it), start(ck.it, fmt), val(ck.it));
319 while (check_conversion(&ck))