Add proper build system
This commit is contained in:
parent
e9e9a3bbc5
commit
e10a41fea8
14 changed files with 331 additions and 9 deletions
|
|
@ -26,7 +26,7 @@ namespace cppast
|
|||
}
|
||||
|
||||
/// \effects Creates it viewing the C string `str`.
|
||||
constexpr string_view(const char* str) noexcept : str_(str), length_(std::strlen(str))
|
||||
string_view(const char* str) noexcept : str_(str), length_(std::strlen(str))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ namespace cppast
|
|||
/// \requires The comment must not be empty, if there is one.
|
||||
void set_comment(type_safe::optional<std::string> comment) noexcept
|
||||
{
|
||||
comment_ = std::move(comment.value_or(""));
|
||||
comment_ = comment.value_or("");
|
||||
}
|
||||
|
||||
protected:
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
namespace cppast
|
||||
{
|
||||
class cpp_entity_index;
|
||||
class diagnostic;
|
||||
struct diagnostic;
|
||||
|
||||
/// Base class for a [cppast::diagnostic]() logger.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue