Parse cpp_constructor
This commit is contained in:
parent
8691628ec5
commit
68c74a9f07
8 changed files with 136 additions and 14 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -243,6 +243,8 @@ namespace cppast
|
|||
class cpp_constructor final : public cpp_function_base
|
||||
{
|
||||
public:
|
||||
static cpp_entity_kind kind() noexcept;
|
||||
|
||||
/// Builder for [cppast::cpp_constructor]().
|
||||
class builder : public basic_builder<cpp_constructor>
|
||||
{
|
||||
|
|
@ -284,6 +286,8 @@ namespace cppast
|
|||
|
||||
bool explicit_;
|
||||
bool constexpr_;
|
||||
|
||||
friend basic_builder<cpp_constructor>;
|
||||
};
|
||||
|
||||
/// A [cppast::cpp_entity]() modelling a C++ destructor.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue