Lines Matching refs:common

28 from UpdateTestChecks import common
45 common.debug('Running', ' '.join(json_dump_args))
82 common.debug('Skipping builtin function:', node['name'], '@', loc)
84 common.debug('Found function:', node['kind'], node['name'], '@', loc)
88 common.debug('Skipping function without line number:', node['name'], '@', loc)
102 common.debug('Skipping function without body:', node['name'], '@', loc)
112 common.error('Clang AST dump JSON format changed?')
118 common.debug('line {}: found function {}'.format(line+1, func), file=sys.stderr)
120 common.warn('Did not find any functions using', ' '.join(json_dump_args))
167 args = common.parse_commandline_args(parser)
183 common.warn('Could not determine clang builtins directory, some tests '
199 raw_tool_output = common.invoke_tool(args.clang, clang_args, filename)
211 raw_tool_output = common.invoke_tool(extra_args[0],
215 common.OPT_FUNCTION_RE, common.scrub_body, raw_tool_output,
236 for ti in common.itertests(initial_args.tests, parser, 'utils/' + script_name,
252 m = common.TRIPLE_ARG_RE.search(commands[0])
275 common.verify_filecheck_prefixes(filecheck_cmd)
282 check_prefixes = [item for m in common.CHECK_PREFIX_RE.finditer(filecheck_cmd)
292 builder = common.FunctionTestBuilder(
306 common.debug('Extracted clang cmd: clang {}'.format(clang_args))
307 common.debug('Extracted FileCheck prefixes: {}'.format(prefixes))
323 include_generated_funcs = common.find_arg_in_test(ti,
339 common.dump_input_lines(output_lines, ti, prefix_set, '//')
344 return common.add_ir_checks(my_output_lines, '//',
357 common.add_global_checks(builder.global_var_dict(), '//', run_list,
360 common.add_checks_at_end(output_lines, filecheck_run_list, builder.func_order(),
371 m = common.CHECK_RE.match(line)
375 if line.strip() == '//' + common.SEPARATOR:
396 common.add_global_checks(builder.global_var_dict(), '//',
403 common.add_ir_checks(output_lines, '//', filecheck_run_list, func_dict, mangled,
413 common.add_global_checks(builder.global_var_dict(), '//', run_list,
415 common.debug('Writing %d lines to %s...' % (len(output_lines), ti.path))