Parse cpp_constructor

This commit is contained in:
Jonathan Müller 2017-03-12 18:18:26 +01:00
commit 68c74a9f07
8 changed files with 136 additions and 14 deletions

View file

@ -24,6 +24,11 @@ namespace cppast
const cpp_entity_index& idx, cpp_entity_id id, std::string name,
std::unique_ptr<cpp_type> type, std::unique_ptr<cpp_expression> def = nullptr);
/// \returns A newly created unnamed function parameter.
/// \notes It will not be registered, as nothing can refer to it.
static std::unique_ptr<cpp_function_parameter> build(
std::unique_ptr<cpp_type> type, std::unique_ptr<cpp_expression> def = nullptr);
private:
cpp_function_parameter(std::string name, std::unique_ptr<cpp_type> type,
std::unique_ptr<cpp_expression> def)