Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 93) sorted by relevance

1234

/build/kati/
Dparser.cc44 typedef void (Parser::*DirectiveHandler)(StringPiece line,
78 StringPiece line(buf_.data() + l_, e - l_); in Parse() local
79 if (line.get(line.size() - 1) == '\r') in Parse()
80 line.remove_suffix(1); in Parse()
81 orig_line_with_directives_ = line; in Parse()
82 ParseLine(line); in Parse()
157 void ParseLine(StringPiece line) { in ParseLine() argument
159 ParseInsideDefine(line); in ParseLine()
163 if (line.empty() || (line.size() == 1 && line[0] == '\r')) in ParseLine()
168 if (line[0] == '\t' && state_ != ParserState::NOT_AFTER_RULE) { in ParseLine()
[all …]
Dstrutil.go275 func firstWord(line []byte) ([]byte, []byte) {
276 s := newWordScanner(line)
281 return line, nil
347 func removeComment(line []byte) ([]byte, bool) {
349 for i := 0; i < len(line); i++ {
350 if line[i] != '#' {
355 if line[i-b] != '\\' {
363 buf = make([]byte, len(line))
364 copy(buf, line)
365 line = buf
[all …]
Dparser.go97 var line []byte
109 line = append(line, buf...)
122 line = bytes.TrimRight(line, "\r\n")
123 return line
147 func (p *parser) handleDirective(line []byte, directives map[string]directiveFunc) bool {
148 w, data := firstWord(line)
156 func (p *parser) handleRuleOrAssign(line []byte) {
157 rline := line
159 if i := findLiteralChar(line, ';', 0, skipVar); i >= 0 {
161 semi = append(semi, line[i+1:]...)
[all …]
Dlog.cc27 void ColorErrorLog(const char* file, int line, const char* msg) { in ColorErrorLog() argument
36 ERROR(BOLD "%s:%d: " RED "error: " RESET BOLD "%s" RESET, file, line, in ColorErrorLog()
39 ERROR("%s:%d: %s", file, line, msg); in ColorErrorLog()
43 void ColorWarnLog(const char* file, int line, const char* msg) { in ColorWarnLog() argument
55 line, filtered.as_string().c_str()); in ColorWarnLog()
57 fprintf(stderr, "%s:%d: %s\n", file, line, msg); in ColorWarnLog()
Drule_parser.go179 func (r *rule) parse(line []byte, assign *assignAST, rhs expr) (*assignAST, error) {
180 line = trimLeftSpaceBytes(line)
182 if rhs == nil && (len(line) == 0 || line[0] == ';') {
187 index := findLiteralChar(line, ':', 0, noSkipVar)
192 first := line[:index]
213 if index < len(line) && line[index] == ':' {
218 rest := line[index:]
221 panic(fmt.Sprintf("pattern specific var? line:%q", line))
Drule.cc40 void Rule::ParsePrerequisites(const StringPiece& line, in ParsePrerequisites() argument
49 StringPiece prereq_string = line; in ParsePrerequisites()
52 CHECK(line[separator_pos] == ';'); in ParsePrerequisites()
55 Intern(TrimLeftSpace(line.substr(separator_pos + 1))).str())); in ParsePrerequisites()
56 prereq_string = line.substr(0, separator_pos); in ParsePrerequisites()
/build/make/tools/
Dcheck_radio_versions.py30 for line in f:
31 line = line.strip() variable
32 if line.startswith("require"):
33 key, value = line.split()[1].split("=", 1)
59 for line in f:
60 line = line.strip() variable
61 if not line or line.startswith("#"): continue
62 h, v = line.split()
Dpost_process_props.py81 for line in self.lines:
82 if not line or line.startswith("#"):
84 if "=" in line:
85 key, value = line.split("=", 1)
91 for line in self.lines:
92 if line.startswith(key):
93 return line[len(key):]
106 self.lines = [ line for line in self.lines if not line.startswith(key) ]
Dfileslist_util.py23 for line in data:
24 print(line["Name"])
29 for line in data:
30 print "{0:12d} {1}".format(line["Size"], line["Name"])
Dparsedeps.py94 for line in f:
95 line = line.strip()
96 if len(line) > 0:
97 if line[0] == '#':
98 pos,tgt = line.rsplit(":", 1)
103 (tgt,prereq) = line.split(':', 1)
111 line = raw_input("target> ")
112 if not line.strip():
114 split = line.split()
Dfilter-product-graph.py7 def choose_regex(regs, line): argument
9 m = reg.match(line)
37 lines = [line.strip() for line in lines]
39 for line in lines:
40 func,m = choose_regex(REGS, line)
Devent_log_tags.py63 for self.linenum, line in enumerate(file_object):
66 line = line.strip()
67 if not line or line[0] == '#': continue
68 parts = re.split(r"\s+", line, 2)
71 self.AddError("failed to parse \"%s\"" % (line,))
Dproduct_debug.py27 def split_line(line): argument
28 words = line.split("=", 1)
40 return [split_line(line) for line in lines if line.strip()]
Dnormalize_path.py28 for line in sys.stdin:
29 print os.path.normpath(line.strip())
/build/soong/ui/status/
Dkati.go63 func (k *katiOutputParser) parseLine(line string) {
65 if katiLogRe.MatchString(line) {
66 k.st.Verbose(line)
70 if matches := katiIncludeRe.FindStringSubmatch(line); len(matches) > 0 {
74 matches := katiIncludeRe.FindStringSubmatch(line)
101 if katiError.MatchString(line) {
104 k.buf.WriteString(line)
108 if line == "No need to regenerate ninja file" || katiNinjaMissing.MatchString(line) {
109 k.st.Status(line)
111 k.st.Print(line)
/build/soong/cmd/javac_wrapper/
Djavac_wrapper.go136 func processLine(w io.Writer, line string) {
138 if f.MatchString(line) {
144 if line, matched = applyColor(line, p.color, p.re); matched {
148 fmt.Fprintln(w, line)
153 func applyColor(line, color string, re *regexp.Regexp) (string, bool) { argument
154 if m := re.FindStringSubmatchIndex(line); m != nil {
156 line = bold + line[:tagStart] +
157 color + line[tagStart:tagEnd] + reset + bold +
158 line[tagEnd:] + reset
159 return line, true
[all …]
/build/make/core/tasks/check_boot_jars/
Dcheck_boot_jars.py24 for line in f:
25 line = line.strip()
26 if not line or line.startswith('#'):
28 lines.append(line)
/build/make/tools/releasetools/
Dtarget_files_diff.py78 for line in original:
81 if line.startswith(s):
85 new.write(line)
93 for line in original:
94 new.write(re.sub(r'[0-9a-f]{40}', '0'*40, line))
103 for line in lines:
104 new.write(line)
151 for line in stdout.strip().split('\n'):
152 print("%s: %s" % (name, line), file=out_file)
Dota_package_parser.py87 for line in lines[4:]:
88 cmd_list = line.strip().split(" ")
92 assert len(cmd_list) == 2, "command format error: {}".format(line)
98 assert len(cmd_list) >= 5, "command format error: {}".format(line)
110 assert len(cmd_list) >= 8, "command format error: {}".format(line)
120 assert len(cmd_list) == 3, "command format error: {}".format(line)
125 assert len(cmd_list) == 2, "command format error: {}".format(line)
129 logging.error("failed to parse command in: " + line)
176 for line in self.package.read(metadata_path).strip().splitlines():
177 index = line.find("=")
[all …]
Dsign_target_files_apks.py671 for line in data.split("\n"):
672 line = line.strip()
673 original_line = line
674 if line and line[0] != '#' and "=" in line:
675 key, value = line.split("=", 1)
698 line = key + "=" + value
699 if line != original_line:
701 print(" with: ", line)
702 output.append(line)
933 for line in data.split("\n"):
[all …]
Dsign_target_files_apks671 for line in data.split("\n"):
672 line = line.strip()
673 original_line = line
674 if line and line[0] != '#' and "=" in line:
675 key, value = line.split("=", 1)
698 line = key + "=" + value
699 if line != original_line:
701 print(" with: ", line)
702 output.append(line)
933 for line in data.split("\n"):
[all …]
/build/soong/ui/build/
Dtest_build.go74 line := scanner.Text()
75 if !strings.HasPrefix(line, outDir) {
79 if strings.HasPrefix(line, bootstrapDir) || strings.HasPrefix(line, miniBootstrapDir) {
84 danglingRules[line] = true
Ddumpvars.go101 for _, line := range strings.Split(output.String(), "\n") {
102 if len(line) == 0 {
106 if key, value, ok := decodeKeyValue(line); ok {
111 return nil, fmt.Errorf("Failed to parse make line: %q", line)
114 return nil, fmt.Errorf("Failed to parse make line: %q", line)
/build/blueprint/
Dninja_writer.go57 var line string
63 line = strings.TrimRightFunc(comment[lineStart:i], unicode.IsSpace)
69 line = strings.TrimSpace(comment[lineStart:lastSplitPoint])
74 line = strings.TrimSpace("# "+line) + "\n"
75 _, err := io.WriteString(n.writer, line)
84 line := strings.TrimSpace(comment[lineStart:])
85 _, err := fmt.Fprintf(n.writer, "# %s\n", line)
/build/make/core/
Dfilter_symbols.sh15 $NM -g -fp $1 | while read -a line
17 type=${line[1]}

1234