Parse cpp_variable

This commit is contained in:
Jonathan Müller 2017-02-24 22:29:48 +01:00
commit 51bdbca81d
12 changed files with 281 additions and 58 deletions

View file

@ -21,6 +21,11 @@ namespace cppast
{
cpp_entity_id get_entity_id(const CXCursor& cur);
// only use this if the name is just a single token
// never where it is a reference to something (like base class name)
// as then you won't get it "as-is"
cxstring get_cursor_name(const CXCursor& cur);
struct parse_context
{
CXTranslationUnit tu;
@ -58,6 +63,9 @@ namespace cppast
std::unique_ptr<cpp_entity> parse_cpp_class(const parse_context& context,
const CXCursor& cur);
std::unique_ptr<cpp_entity> parse_cpp_variable(const parse_context& context,
const CXCursor& cur);
std::unique_ptr<cpp_entity> parse_entity(const parse_context& context, const CXCursor& cur);
}
} // namespace cppast::detail