Home
last modified time | relevance | path

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

123

/build/hb/util/post_gn/
Dcheck_compilation_parameters.py25 def parse_cflags(line, cflags_check_list, whitelist): argument
27 for flag in line.split():
35 def parse_ldflags(line, ldflags_check_list, whitelist): argument
37 for flag in line.split():
47 for line in file:
48 … if line.startswith('cflags') or line.startswith('cflags_cc') or line.startswith('cflags_c'):
49 flag = parse_cflags(line, cflags_check_list, whitelist)
50 elif line.startswith('ldflags'):
51 flag = parse_ldflags(line, ldflags_check_list, whitelist)
52 elif line.startswith('label_name'):
[all …]
/build/toolchain/mac/
Dfilter_libtool.py24 def is_blocklisted_line(line): argument
27 if isinstance(line, bytes):
28 line = line.decode()
29 if pattern.match(line):
41 for line in err.splitlines():
42 if not is_blocklisted_line(line):
43 print(line, file=sys.stderr)
/build/tools/component_tools/static_check/
Dcsct_online_prehandle.py37 def __diff_match_file_start(control_block: dict, line: str):
39 if not line.startswith(pattern):
51 def __diff_match_is_newfile(control_block: dict, line: str):
53 if not line.startswith(pattern):
60 def __diff_match_filename_with_minus(control_block: dict, line: str):
62 if re.match(pattern, line) is None:
69 def __diff_match_filename_with_plus(control_block: dict, line: str):
71 if re.match(pattern, line) is None:
75 if re.search(key, line) is not None:
77 res = re.match(pattern, line)
[all …]
/build/hb/helper/
Dseparator.py20 line = '-' * 15 variable in Separator
23 def __init__(self, line=None): argument
24 if line:
25 self.line = f'\n{line}'
28 return self.line
/build/tools/component_tools/static_check/gn_check/
Dcheck_gn_online.py45 for line in values:
46 pos = line[0]
47 content = line[1]
68 def check_have_product_name(self, key: str, line: list) -> None:
73 if line[1].find(check_item) != -1 and line[1].find("==") != -1:
80 pos = "line:{} {}".format(line[0], line[1])
85 def check_abs_path(self, key: str, line: list) -> None:
90 abs_iter = re.finditer(abs_path_pattern, line[1])
101 pos = "line:{} {}".format(line[0], line[1])
109 for line in modified_line:
[all …]
/build/tools/component_tools/
Dparse_kconf.py78 def is_valid_line(line: str):
79 return line.startswith(KCONF_PREFIX)
82 def handle_config_feature(items: dict, arr: list, line: str):
86 features = line.split("=", 1)[1].strip("\"")
93 def handle_config_component(items: dict, arr: list, line: str):
97 items[VALUE] = line.split("=", 1)[1]
100 def handle_config_property(items: dict, arr: list, line: str):
103 items[VALUE] = line.split("=", 1)[1].strip("\"")
106 def read_line_item(line: str):
107 line = line.strip()
[all …]
/build/tools/component_tools/static_check/bundle_check/
Dbundle_check_common.py85 for line in lines:
86 line = line.strip()
87 if line and line[0] == '#':
89 if 'sdk_version =' in line:
90 match_result = re.match(r'\s*sdk_version\s*=\s*"(\d+\.\d+).*"', line)
Dbundle_check_online.py48 line = list(("line" + str(i[0]) + ": " + i[1], ret))
50 diff_dict[file_path].append(line)
63 def check_diff_by_line(line:str) -> str:
64 line = line.strip()
65 match = re.match(r'"(\w+)"\s*:\s*"(.*)"', line)
Dbundle_json_check.py191 for line in self.__lines:
193 if string in line:
216 bundle_error = dict(line=0, contents='"name"')
242 bundle_error = dict(line=0, contents='version')
262 bundle_error = dict(line=0, contents='"segment"')
300 bundle_error = dict(line=0, contents='"component"',
320 bundle_error = dict(line=component_line,
325 bundle_error = dict(line=component_line + 1,
339 bundle_error = dict(line=component_line,
344 bundle_error = dict(line=self.get_line_number('"subsystem":'),
[all …]
/build/ohos/images/mkimage/
Dmkchip_ckm.py50 for line in f:
51 line = line.strip()
52 if not line or line.startswith('#'):
54 mk_configs_list.append(line)
Dmkimages.py55 for line in file:
56 line = line.strip()
57 if not line or line.startswith("#"):
59 mk_configs.append(line)
/build/hb/util/
Dlog_util.py43 for line in str(msg).splitlines():
46 '\r' + (LogUtil.message(level, line)).strip('\n'))
50 for line in str(msg).splitlines():
51 sys.stdout.write(LogUtil.message(level, line))
57 for line in str(msg).splitlines():
58 sys.stderr.write(LogUtil.message(level, line))
65 for line in str(msg).splitlines():
66 sys.stderr.write(LogUtil.message(level, line))
86 for line in str(msg).splitlines():
87 sys.stderr.write(LogUtil.message(level, line))
[all …]
Dsystem_util.py54 for line in iter(process.stdout.readline, ''):
55 log_file.write(line)
57 info = re.findall(useful_info_pattern, line)
61 LogUtil.hb_info(line)
/build/scripts/
Dmerge_notice.py37 for line in data:
38 a_file.write(line)
42 for line in data:
43 a_file.write(line)
Dcargo2gn.py94 for line in lines:
96 if designated_re.match(line):
97 line = eval(repr(line).replace(f'\\"', ''))
98 return designated_re.match(line).group(1)
100 is_package = package.match(line) is not None
148 self.line = '' # original rustc command line parameters
180 def parse_rustc(self, line_num: int, line: str):
183 self.line = line
184 args = line.split() # Loop through every argument of rustc.
581 self.write('\n// Line ' + str(self.line_num) + ' ' + self.line)
[all …]
Dninja2trace.py53 for _, line in enumerate(f.readlines()):
54 start, end, time_stamp, name, cmdhash = line.strip().split(
60 key=lambda line: line.start)
62 key=lambda line: line.end - line.start,
Dsummary_ccache_hitrate.py63 for line in process:
64 if cache_size_str in line:
65 cache_size = line.split(":")[1].strip()
66 if ccache_version_str in line:
67 ccache_version = line.split(" ")[2].strip()
/build/lite/
Dutils.py62 for line in iter(process.stdout.readline, ''):
63 sys.stdout.write(line)
64 log_file.write(line)
71 for line in iter(process.stderr.readline, ''):
72 sys.stdout.write(line)
73 log_file.write(line)
/build/ohos/images/
Dadlt_wrapper.py34 for line in stdout.splitlines():
36 for line in stderr.splitlines():
45 for line in lines:
46 so_abspath = os.path.join(args.adlt_root_dir, line.strip("\n"))
/build/ohos/ndk/
Dscan_ndk_targets.py44 for line in in_file:
47 if re.match(r'.*?("\S*#\S*")', line):
50 line = re.sub(r'(#.*?)\n', '', line)
51 contents.append(line)
/build/test/example/
Dconftest.py45 total_memory_line = [line for line in lines if line.startswith('MemTotal')]
Dperformance_test.py271 for line in f:
272 yield line.strip()
283 for line in self.read_ninjia_trace_file():
284 line_list = line.split(":")
352 total_memory_line = [line for line in lines if line.startswith('MemTotal')]
410 for line in lines[:-1]:
411 line = line.strip()
412 if line:
413 out_str = "{}".format(time.time_ns()) + "[timestamp]" + line
/build/toolchain/
Dgcc_solink_wrapper.py30 for line in readelf.stdout:
31 if b'SONAME' in line:
32 toc += line.decode()
48 for line in nm.stdout:
49 toc += '{}\n'.format(' '.join(line.decode().split(' ', 2)[:2]))
197 lines = [line.strip()[1:] for line in lines]
Dmini_debug_info.py76 for line in lines:
77 columns = line.strip().split()
94 for line in lines:
95 columns = line.strip().split()
/build/templates/common/
Dinclude_relative_path_check.py31 for line in xml_info:
32 if "path=" in line:
33 path = re.findall('path="(.*?)"', line)[0]
99 for line in line_list:
100 include = re.match(r'#include\s+"([^">]+)"', line)

123