MCPcopy Index your code
hub / github.com/nodejs/node / find_all_headers

Function find_all_headers

deps/v8/tools/generate-header-include-checks.py:91–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89
90
91def find_all_headers():
92 printv('Searching for headers...')
93 header_files = []
94 exclude_patterns = [re.compile(x) for x in args.exclude]
95 def add_recursively(filename):
96 full_name = os.path.join(V8_DIR, filename)
97 if not os.path.exists(full_name):
98 sys.exit('File does not exist: {}'.format(full_name))
99 if os.path.isdir(full_name):
100 for subfile in os.listdir(full_name):
101 full_name = os.path.join(filename, subfile)
102 printv('Scanning {}'.format(full_name))
103 add_recursively(full_name)
104 elif filename.endswith('.h'):
105 printv('--> Found header file {}'.format(filename))
106 for p in exclude_patterns:
107 if p.search(filename):
108 printv('--> EXCLUDED (matches {})'.format(p.pattern))
109 return
110 header_files.append(filename)
111
112 for filename in args.input:
113 add_recursively(filename)
114
115 return header_files
116
117
118def get_cc_file_name(header):

Callers 1

mainFunction · 0.85

Calls 3

printvFunction · 0.85
add_recursivelyFunction · 0.85
compileMethod · 0.45

Tested by

no test coverage detected