Home
last modified time | relevance | path

Searched refs:linenum (Results 1 – 25 of 87) sorted by relevance

1234

/external/llvm-project/compiler-rt/lib/sanitizer_common/scripts/
Dcpplint.py583 def ParseNolintSuppressions(filename, raw_line, linenum, error): argument
599 suppressed_line = linenum + 1
601 suppressed_line = linenum
611 error(filename, linenum, 'readability/nolint', 5,
639 def IsErrorSuppressedByNolint(category, linenum): argument
653 linenum in _error_suppressions.get(category, set()) or
654 linenum in _error_suppressions.get(None, set()))
787 def IsInAlphabeticalOrder(self, clean_lines, linenum, header_path): argument
804 Match(r'^\s*#\s*include\b', clean_lines.elided[linenum - 1])):
1059 def Check(self, error, filename, linenum): argument
[all …]
/external/google-styleguide/cpplint/
Dcpplint.py583 def ParseNolintSuppressions(filename, raw_line, linenum, error): argument
599 suppressed_line = linenum + 1
601 suppressed_line = linenum
611 error(filename, linenum, 'readability/nolint', 5,
639 def IsErrorSuppressedByNolint(category, linenum): argument
653 linenum in _error_suppressions.get(category, set()) or
654 linenum in _error_suppressions.get(None, set()))
787 def IsInAlphabeticalOrder(self, clean_lines, linenum, header_path): argument
804 Match(r'^\s*#\s*include\b', clean_lines.elided[linenum - 1])):
1059 def Check(self, error, filename, linenum): argument
[all …]
/external/libvpx/libvpx/tools/
Dcpplint.py455 def ParseNolintSuppressions(filename, raw_line, linenum, error): argument
473 _error_suppressions.setdefault(None, set()).add(linenum)
478 _error_suppressions.setdefault(category, set()).add(linenum)
480 error(filename, linenum, 'readability/nolint', 5,
489 def IsErrorSuppressedByNolint(category, linenum): argument
501 return (linenum in _error_suppressions.get(category, set()) or
502 linenum in _error_suppressions.get(None, set()))
601 def IsInAlphabeticalOrder(self, clean_lines, linenum, header_path): argument
618 not Match(r'^\s*$', clean_lines.elided[linenum - 1])):
825 def Check(self, error, filename, linenum): argument
[all …]
/external/libaom/libaom/tools/
Dcpplint.py455 def ParseNolintSuppressions(filename, raw_line, linenum, error): argument
473 _error_suppressions.setdefault(None, set()).add(linenum)
478 _error_suppressions.setdefault(category, set()).add(linenum)
480 error(filename, linenum, 'readability/nolint', 5,
489 def IsErrorSuppressedByNolint(category, linenum): argument
501 return (linenum in _error_suppressions.get(category, set()) or
502 linenum in _error_suppressions.get(None, set()))
601 def IsInAlphabeticalOrder(self, clean_lines, linenum, header_path): argument
618 not Match(r'^\s*$', clean_lines.elided[linenum - 1])):
825 def Check(self, error, filename, linenum): argument
[all …]
/external/compiler-rt/lib/sanitizer_common/scripts/
Dcpplint.py360 def ParseNolintSuppressions(filename, raw_line, linenum, error): argument
378 _error_suppressions.setdefault(None, set()).add(linenum)
383 _error_suppressions.setdefault(category, set()).add(linenum)
385 error(filename, linenum, 'readability/nolint', 5,
394 def IsErrorSuppressedByNolint(category, linenum): argument
406 return (linenum in _error_suppressions.get(category, set()) or
407 linenum in _error_suppressions.get(None, set()))
700 def Check(self, error, filename, linenum): argument
719 error(filename, linenum, 'readability/fn_size', error_level,
825 def _ShouldPrintError(category, confidence, linenum): argument
[all …]
/external/starlark-go/internal/chunkedfile/
Dchunkedfile.go63 linenum := 1
66 fmt.Printf("chunk %d at line %d: %s\n", i, linenum, chunk)
69 src := strings.Repeat("\n", linenum-1) + chunk
76 for j := 0; j < len(lines); j, linenum = j+1, linenum+1 {
85 report.Errorf("\n%s:%d: not a quoted regexp: %s", filename, linenum, rest)
90 report.Errorf("\n%s:%d: %v", filename, linenum, err)
93 wantErrs[linenum] = rx
95 fmt.Printf("\t%d\t%s\n", linenum, rx)
98 linenum++
107 func (chunk *Chunk) GotError(linenum int, msg string) {
[all …]
/external/curl/tests/
Dmemanalyze.pl103 my ($source, $linenum) = ($1, $2);
105 print "LIMIT: $1 returned error at $source:$linenum\n";
111 $linenum = $2;
129 print "FREE: malloc at ".$getmem{$addr}." is freed again at $source:$linenum\n";
137 $getmem{$addr}="$source:$linenum";
147 print "Mixed debug compile ($source:$linenum at line $lnum), rebuild curl now\n";
155 print "MALLOC: malloc($size) at $source:$linenum",
162 $getmem{$addr}="$source:$linenum";
180 print "CALLOC: calloc($arg1,$arg2) at $source:$linenum",
187 $getmem{$addr}="$source:$linenum";
[all …]
/external/llvm/utils/abtest/
Dmark_armfns.py12 linenum = 0 variable
20 linenum += 1
22 last_align = linenum
24 last_code = linenum
26 last_globl = linenum
30 if last_code == last_align+1 and (linenum - last_code) < 4:
35 end = linenum
43 linenum = 0 variable
45 linenum += 1
46 if in_func is not None and linenum == end:
[all …]
Dmark_aarch64fns.py12 linenum = 0 variable
22 linenum += 1
34 last_align = linenum
38 last_globl = linenum
42 if last_globl+2 == linenum and last_globl_name == labelname:
46 end = linenum
54 linenum = 0 variable
56 linenum += 1
57 if in_func is not None and linenum == end:
61 triple = begins.get(linenum)
/external/libcups/scheduler/
Dconf.c191 char *value, int linenum);
193 static int parse_groups(const char *s, int linenum);
195 static int parse_variable(const char *filename, int linenum,
201 static int read_location(cups_file_t *fp, char *name, int linenum);
202 static int read_policy(cups_file_t *fp, char *name, int linenum);
2058 int linenum) /* I - Current line number */ in parse_aaa() argument
2077 "context. Using \"required\" instead.", value, linenum, ConfigurationFile); in parse_aaa()
2088 … "Unknown Encryption value %s on line %d of %s.", value, linenum, ConfigurationFile); in parse_aaa()
2105 value, linenum, ConfigurationFile); in parse_aaa()
2208 value, linenum, ConfigurationFile); in parse_aaa()
[all …]
Dclasses.c264 int linenum; /* Current line number */ in cupsdLoadAllClasses() local
284 linenum = 0; in cupsdLoadAllClasses()
287 while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) in cupsdLoadAllClasses()
327 "Syntax error on line %d of classes.conf.", linenum); in cupsdLoadAllClasses()
338 "Syntax error on line %d of classes.conf.", linenum); in cupsdLoadAllClasses()
343 "Syntax error on line %d of classes.conf.", linenum); in cupsdLoadAllClasses()
350 cupsdLogMessage(CUPSD_LOG_ERROR, "Bad PrinterId on line %d of classes.conf.", linenum); in cupsdLoadAllClasses()
358 "Bad UUID on line %d of classes.conf.", linenum); in cupsdLoadAllClasses()
365 linenum); in cupsdLoadAllClasses()
387 "Syntax error on line %d of classes.conf.", linenum); in cupsdLoadAllClasses()
[all …]
Dsubscriptions.c671 int linenum; /* Current line number */ in cupsdLoadAllSubscriptions() local
692 linenum = 0; in cupsdLoadAllSubscriptions()
696 while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) in cupsdLoadAllSubscriptions()
723 linenum); in cupsdLoadAllSubscriptions()
733 linenum); in cupsdLoadAllSubscriptions()
747 linenum); in cupsdLoadAllSubscriptions()
760 linenum); in cupsdLoadAllSubscriptions()
783 value, linenum); in cupsdLoadAllSubscriptions()
802 linenum); in cupsdLoadAllSubscriptions()
818 linenum); in cupsdLoadAllSubscriptions()
[all …]
/external/libcups/cups/
Dipp-file.c54 f.linenum = 1; in _ippFileParse()
92 … v, user_data, "Missing %s name and/or value on line %d of \"%s\".", token, f.linenum, f.filename); in _ippFileParse()
110 …report_error(&f, v, user_data, "Missing ATTR syntax on line %d of \"%s\".", f.linenum, f.filename); in _ippFileParse()
115 …r(&f, v, user_data, "Bad ATTR syntax \"%s\" on line %d of \"%s\".", syntax, f.linenum, f.filename); in _ippFileParse()
121 … report_error(&f, v, user_data, "Missing ATTR name on line %d of \"%s\".", f.linenum, f.filename); in _ippFileParse()
220 DEBUG_printf(("1_ippFileReadToken: linenum=%d, pos=%ld", f->linenum, (long)cupsFileTell(f->fp))); in _ippFileReadToken()
232 f->linenum ++; in _ippFileReadToken()
233 …("1_ippFileReadToken: LF in leading whitespace, linenum=%d, pos=%ld", f->linenum, (long)cupsFileTe… in _ippFileReadToken()
252 f->linenum ++; in _ippFileReadToken()
253 …DEBUG_printf(("1_ippFileReadToken: LF at end of comment, linenum=%d, pos=%ld", f->linenum, (long)c… in _ippFileReadToken()
[all …]
/external/openssh/
Ddh.c49 parse_prime(int linenum, char *line, struct dhgroup *dhg) in parse_prime() argument
75 error("moduli:%d: type is not %d", linenum, MODULI_TYPE_SAFE); in parse_prime()
85 error("moduli:%d: invalid moduli tests flag", linenum); in parse_prime()
93 error("moduli:%d: invalid primality trial count", linenum); in parse_prime()
100 error("moduli:%d: invalid prime length", linenum); in parse_prime()
111 error("moduli:%d: truncated", linenum); in parse_prime()
121 error("moduli:%d: could not parse generator value", linenum); in parse_prime()
125 error("moduli:%d: could not parse prime value", linenum); in parse_prime()
130 linenum, BN_num_bits(dhg->p), dhg->size - 1); in parse_prime()
134 error("moduli:%d: generator is invalid", linenum); in parse_prime()
[all …]
Dservconf.c736 int linenum, u_int *flags) in parse_token() argument
747 filename, linenum, cp); in parse_token()
1265 const char *filename, int linenum, int *activep, in process_server_config_line_depth() argument
1301 opcode = parse_token(arg, filename, linenum, &flags); in process_server_config_line_depth()
1308 debug3("%s:%d setting %s %s", filename, linenum, arg, cp); in process_server_config_line_depth()
1312 "within a Match block", filename, linenum, arg); in process_server_config_line_depth()
1335 filename, linenum); in process_server_config_line_depth()
1339 filename, linenum); in process_server_config_line_depth()
1343 filename, linenum); in process_server_config_line_depth()
1352 filename, linenum); in process_server_config_line_depth()
[all …]
Dreadconf.c137 const char *filename, int linenum, int *activep, int flags,
577 int *want_final_pass, const char *filename, int linenum) in match_cfg_line() argument
614 filename, linenum, oattrib); in match_cfg_line()
636 filename, linenum, in match_cfg_line()
695 "\"%.100s\"", filename, linenum, cmd); in match_cfg_line()
703 linenum, cmd); in match_cfg_line()
717 filename, linenum, this_result ? "": "not ", in match_cfg_line()
736 rm_env(Options *options, const char *arg, const char *filename, int linenum) in rm_env() argument
750 filename, linenum, cp); in rm_env()
767 parse_token(const char *cp, const char *filename, int linenum, in parse_token() argument
[all …]
Dsshsig.c623 sshsigopt_parse(const char *opts, const char *path, u_long linenum, in sshsigopt_parse() argument
684 parse_principals_key_and_options(const char *path, u_long linenum, char *line, in parse_principals_key_and_options() argument
708 error("%s:%lu: invalid line", path, linenum); in parse_principals_key_and_options()
729 __func__, path, linenum, required_principal); in parse_principals_key_and_options()
741 error("%s:%lu: invalid options", path, linenum); in parse_principals_key_and_options()
748 error("%s:%lu: invalid key", path, linenum); in parse_principals_key_and_options()
753 debug3("%s:%lu: options %s", path, linenum, opts == NULL ? "" : opts); in parse_principals_key_and_options()
754 if ((sigopts = sshsigopt_parse(opts, path, linenum, &reason)) == NULL) { in parse_principals_key_and_options()
755 error("%s:%lu: bad options: %s", path, linenum, reason); in parse_principals_key_and_options()
781 check_allowed_keys_line(const char *path, u_long linenum, char *line, in check_allowed_keys_line() argument
[all …]
/external/zstd/contrib/gen_html/
Dgen_html.cpp41 vector<string> get_lines(vector<string>& input, int& linenum, string terminator) in get_lines() argument
47 while ((size_t)linenum < input.size()) { in get_lines()
48 line = input[linenum]; in get_lines()
50 if (terminator.empty() && line.empty()) { linenum--; break; } in get_lines()
58 linenum++; in get_lines()
83 int linenum, chapter = 1; in main() local
114 for (linenum=0; (size_t)linenum < input.size(); linenum++) { in main()
115 line = input[linenum]; in main()
119 lines = get_lines(input, linenum, "}"); in main()
151 comments = get_lines(input, linenum, "*/"); in main()
[all …]
/external/lz4/contrib/gen_manual/
Dgen_manual.cpp66 vector<string> get_lines(vector<string>& input, int& linenum, string terminator) in get_lines() argument
71 while ((size_t)linenum < input.size()) { in get_lines()
72 line = input[linenum]; in get_lines()
74 if (terminator.empty() && line.empty()) { linenum--; break; } in get_lines()
82 linenum++; in get_lines()
109 int linenum, chapter = 1; in main() local
140 for (linenum=0; (size_t)linenum < input.size(); linenum++) { in main()
141 line = input[linenum]; in main()
145 lines = get_lines(input, linenum, "}"); in main()
178 comments = get_lines(input, linenum, "*/"); in main()
[all …]
/external/openscreen/
DPRESUBMIT.py66 linenum, argument
85 line = clean_lines.elided[linenum]
88 error(filename, linenum, error_type, 4,
93 def _CheckNoValueDchecks(filename, clean_lines, linenum, error): argument
102 linenum, error, 'runtime/is_value_dchecks',
106 def _CheckNoexceptOnMove(filename, clean_lines, linenum, error): argument
117 clean_lines, linenum, error, 'runtime/noexcept',
/external/python/cpython2/Lib/idlelib/
DCodeContext.py91 def get_line_info(self, linenum): argument
98 text = self.text.get("%d.0" % linenum, "%d.end" % linenum)
120 for linenum in xrange(new_topvisible, stopline-1, -1):
121 indent, text, opener = self.get_line_info(linenum)
127 if opener and linenum < new_topvisible and indent >= stopindent:
128 lines.append((linenum, indent, text, opener))
/external/python/cpython3/Lib/xml/sax/
D_exceptions.py94 linenum = self.getLineNumber()
95 if linenum is None:
96 linenum = "?"
100 return "%s:%s:%s: %s" % (sysid, linenum, colnum, self._msg)
/external/python/cpython2/Lib/xml/sax/
D_exceptions.py94 linenum = self.getLineNumber()
95 if linenum is None:
96 linenum = "?"
100 return "%s:%s:%s: %s" % (sysid, linenum, colnum, self._msg)
/external/libcups/tools/
Dipptool.c3071 …orted COMPRESSION value \"%s\" on line %d of \"%s\".", data->compression, f->linenum, f->filename); in token_cb()
3080 …print_fatal_error(data, "Missing COMPRESSION value on line %d of \"%s\".", f->linenum, f->filename… in token_cb()
3097 …print_fatal_error(data, "Missing DEFINE name and/or value on line %d of \"%s\".", f->linenum, f->f… in token_cb()
3114 …print_fatal_error(data, "Missing IGNORE-ERRORS value on line %d of \"%s\".", f->linenum, f->filena… in token_cb()
3139 print_fatal_error(data, "Missing PAUSE message on line %d of \"%s\".", f->linenum, f->filename); in token_cb()
3162 …print_fatal_error(data, "Bad REQUEST-ID value \"%s\" on line %d of \"%s\".", temp, f->linenum, f->… in token_cb()
3168 print_fatal_error(data, "Missing REQUEST-ID value on line %d of \"%s\".", f->linenum, f->filename); in token_cb()
3185 …print_fatal_error(data, "Missing SKIP-IF-DEFINED value on line %d of \"%s\".", f->linenum, f->file… in token_cb()
3207 …print_fatal_error(data, "Missing SKIP-IF-MISSING filename on line %d of \"%s\".", f->linenum, f->f… in token_cb()
3224 …print_fatal_error(data, "Missing SKIP-IF-NOT-DEFINED value on line %d of \"%s\".", f->linenum, f->… in token_cb()
[all …]
/external/skia/tools/
Dparse_llvm_coverage.py89 cov, linenum, code = line.split('|', 2)
95 linenum = int(linenum.strip())
96 assert linenum == len(file_lines) + 1
97 file_lines.append((linenum, cov, code.decode('utf-8', 'replace')))

1234