Exemplo n.º 1
0
def cmd_analyze(filenames=None, **kwargs):
    formats = dict(c_analyzer.FORMATS)
    formats['summary'] = fmt_summary
    filenames = _resolve_filenames(filenames)
    kwargs['get_file_preprocessor'] = _parser.get_preprocessor(log_err=print)
    c_analyzer.cmd_analyze(filenames,
                           _analyze=_analyzer.analyze,
                           formats=formats,
                           **kwargs)
Exemplo n.º 2
0
def cmd_analyze(filenames=None, **kwargs):
    formats = dict(c_analyzer.FORMATS)
    formats['summary'] = fmt_summary
    filenames = _resolve_filenames(filenames)
    kwargs['get_file_preprocessor'] = _parser.get_preprocessor(log_err=print)
    c_analyzer.cmd_analyze(filenames,
                           relroot=REPO_ROOT,
                           _analyze=_analyzer.analyze,
                           formats=formats,
                           file_maxsizes=_parser.MAX_SIZES,
                           **kwargs)