Add proper build system

This commit is contained in:
Jonathan Müller 2017-04-02 18:37:57 +02:00
commit e10a41fea8
14 changed files with 331 additions and 9 deletions

View file

@ -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))
{
}

View file

@ -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:

View file

@ -13,7 +13,7 @@
namespace cppast
{
class cpp_entity_index;
class diagnostic;
struct diagnostic;
/// Base class for a [cppast::diagnostic]() logger.
///