Lines Matching refs:depth
198 def traverse_c(node, depth):
206 if node.kind == CursorKind.VAR_DECL and depth == 1:
210 traverse_c(n, depth + 1)
213 def check_cpp_namespace(depth):
214 if not depth.find('std') == -1:
216 if not depth.find('__gnu_cxx') == -1:
218 if not depth.find('__cxxabiv1') == -1:
220 if not depth.find('__pthread_cleanup_class') == -1:
225 def traverse_cpp(node, depth):
231 if depth == '':
232 depth = node.spelling
234 depth = depth + '::' + node.spelling
236 depth) and not depth == '' and not node.is_pure_virtual_method():
237 HEAD_FILE_NAME_LIST.append(depth + '::' + node.spelling + '@' +
240 depth) and not depth == '':
241 HEAD_FILE_NAME_LIST.append(depth + '::' + node.spelling + '@' +
243 if node.kind == CursorKind.DESTRUCTOR and check_cpp_namespace(depth):
244 HEAD_FILE_NAME_LIST.append(depth + '::' + node.spelling + '@0')
246 depth) and not depth == '':
247 HEAD_FILE_NAME_LIST.append(depth + '::' + node.spelling)
248 if node.kind == CursorKind.CONSTRUCTOR and check_cpp_namespace(depth):
249 HEAD_FILE_NAME_LIST.append(depth + '::' + node.spelling + '@' +
252 traverse_cpp(n, depth)