MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / add_cpp_copyright

Function add_cpp_copyright

scripts/add_copyright.py:31–43  ·  view source on GitHub ↗
( f, content)

Source from the content-addressed store, hash-verified

29mit_copyright = open("scripts/copyright_mit.txt",'r').read()
30
31def add_cpp_copyright( f, content):
32 global mit_copyright
33 out = open(f,'w')
34 out.write("/*\n")
35 for line in mit_copyright.split('\n')[:-1]:
36 out.write(" *");
37 if line.strip() != "":
38 out.write(" %s" %line)
39 out.write("\n")
40 out.write(" */\n")
41 out.write(content.strip())
42 out.write("\n")
43 out.close()
44
45def add_python_copyright( f, content):
46 global mit_copyright

Callers 1

check_fileFunction · 0.85

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected