(decl)
| 134 | return indent_str + '/*# ' + _format_doc_lines(lines, indent) + '\n'+ indent_str + ' */' |
| 135 | |
| 136 | def get_cpp_func(decl): |
| 137 | ret_type = decl['type']['qualType'] |
| 138 | index = ret_type.find('(') |
| 139 | ret_type = ret_type[:index].strip() |
| 140 | |
| 141 | args = [] |
| 142 | for inner in decl.get('inner', []): |
| 143 | #args.append(inner['type']['qualType']) |
| 144 | if not inner['kind'] == 'ParmVarDecl': |
| 145 | continue |
| 146 | args.append('%s %s' % (inner['type']['qualType'], inner.get('name',''))) |
| 147 | |
| 148 | return '%s %s(%s)' % (ret_type, decl['name'], ', '.join(args)) |
| 149 | |
| 150 | def add_c_docs(docs): |
| 151 | for doc in docs['items']: |
no test coverage detected