MCPcopy Create free account
hub / github.com/BVLC/caffe / main

Function main

scripts/cpp_lint.py:4853–4869  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4851
4852
4853def main():
4854 filenames = ParseArguments(sys.argv[1:])
4855
4856 # Change stderr to write with replacement characters so we don't die
4857 # if we try to print something containing non-ASCII characters.
4858 if six.PY2:
4859 sys.stderr = codecs.StreamReaderWriter(sys.stderr,
4860 codecs.getreader('utf8'),
4861 codecs.getwriter('utf8'),
4862 'replace')
4863
4864 _cpplint_state.ResetErrorCounts()
4865 for filename in filenames:
4866 ProcessFile(filename, _cpplint_state.verbose_level)
4867 _cpplint_state.PrintErrorCounts()
4868
4869 sys.exit(_cpplint_state.error_count > 0)
4870
4871
4872if __name__ == '__main__':

Callers 1

cpp_lint.pyFile · 0.70

Calls 4

ParseArgumentsFunction · 0.85
ProcessFileFunction · 0.85
ResetErrorCountsMethod · 0.80
PrintErrorCountsMethod · 0.80

Tested by

no test coverage detected