can`t parse inherit ?
0x007004 opened this issue · 2 comments
0x007004 commented
- cppast version: lasest one
- parser:
libclang_parser
- clang version: 7.0
Explanation of the error.
i`m newer about cppast , i use the tools 'tool/cppast' pase my c++ file .
Input:
the input file like this
Minimal source code reproducing the error
Input flags:
Output:
the output file like this , but it`s not show the 'class Object' inherit from 'class A' . Can I get the relation use cppast。
Output of `cppast -v <input>`
0x007004 commented
I found a function bases() knows the classs base , but how about template class
s base
foonathan commented
You use https://github.com/foonathan/cppast/blob/master/include/cppast/cpp_class_template.hpp#L27 to get the class, then bases().