Update copyright year

This commit is contained in:
Jonathan Müller 2018-01-25 22:02:21 +01:00
commit 4c78c69da0
132 changed files with 176 additions and 219 deletions

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
@ -100,9 +100,7 @@ namespace cppast
}
protected:
compile_config(std::vector<std::string> def_flags) : flags_(std::move(def_flags))
{
}
compile_config(std::vector<std::string> def_flags) : flags_(std::move(def_flags)) {}
compile_config(const compile_config&) = default;
compile_config& operator=(const compile_config&) = default;

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
@ -27,9 +27,7 @@ namespace cppast
}
private:
cpp_decltype_type(std::unique_ptr<cpp_expression> expr) : expr_(std::move(expr))
{
}
cpp_decltype_type(std::unique_ptr<cpp_expression> expr) : expr_(std::move(expr)) {}
cpp_type_kind do_get_kind() const noexcept override
{

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
@ -39,13 +39,9 @@ namespace cppast
struct cpp_entity_id : type_safe::strong_typedef<cpp_entity_id, std::size_t>,
type_safe::strong_typedef_op::equality_comparison<cpp_entity_id>
{
explicit cpp_entity_id(const std::string& str) : cpp_entity_id(str.c_str())
{
}
explicit cpp_entity_id(const std::string& str) : cpp_entity_id(str.c_str()) {}
explicit cpp_entity_id(const char* str) : strong_typedef(detail::id_hash(str))
{
}
explicit cpp_entity_id(const char* str) : strong_typedef(detail::id_hash(str)) {}
};
inline namespace literals
@ -138,7 +134,7 @@ namespace cppast
}
};
mutable std::mutex mutex_;
mutable std::mutex mutex_;
mutable std::unordered_map<cpp_entity_id, value, hash> map_;
mutable std::unordered_map<cpp_entity_id,
std::vector<type_safe::object_ref<const cpp_namespace>>, hash>

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
@ -109,7 +109,7 @@ namespace cppast
}
type_safe::variant<cpp_entity_id, std::vector<cpp_entity_id>> target_;
std::string name_;
std::string name_;
};
/// \exclude

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
@ -57,9 +57,7 @@ namespace cppast
add_child(std::move(e));
}
cpp_friend(std::unique_ptr<cpp_type> type) : cpp_entity(""), type_(std::move(type))
{
}
cpp_friend(std::unique_ptr<cpp_type> type) : cpp_entity(""), type_(std::move(type)) {}
cpp_entity_kind do_get_entity_kind() const noexcept override;

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
@ -111,9 +111,7 @@ namespace cppast
{
public:
/// \effects Sets the name.
basic_builder(std::string name) : function(new T(name))
{
}
basic_builder(std::string name) : function(new T(name)) {}
/// \effects Adds a parameter.
void add_parameter(std::unique_ptr<cpp_function_parameter> parameter)

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
@ -48,7 +48,7 @@ namespace cppast
/// Builder for [cppast::cpp_function_template_specialization]().
class builder
: public specialization_builder<cpp_function_template_specialization, cpp_function_base>
: public specialization_builder<cpp_function_template_specialization, cpp_function_base>
{
public:
using specialization_builder::specialization_builder;

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
@ -168,8 +168,8 @@ namespace cppast
class builder : public cpp_member_function_base::basic_member_builder<cpp_member_function>
{
public:
using cpp_member_function_base::basic_member_builder<cpp_member_function>::
basic_member_builder;
using cpp_member_function_base::basic_member_builder<
cpp_member_function>::basic_member_builder;
};
private:
@ -199,8 +199,8 @@ namespace cppast
}
private:
using basic_member_builder::is_variadic;
using basic_member_builder::add_parameter;
using basic_member_builder::is_variadic;
};
/// \returns Whether or not the conversion is `explicit`.
@ -309,9 +309,7 @@ namespace cppast
}
private:
cpp_destructor(std::string name) : cpp_function_base(std::move(name))
{
}
cpp_destructor(std::string name) : cpp_function_base(std::move(name)) {}
cpp_entity_kind do_get_entity_kind() const noexcept override;

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
@ -275,9 +275,8 @@ namespace cppast
/// \notes This constructor only participates in overload resolution if `T` is dervied from [cppast::cpp_expression]().
/// \param 1
/// \exclude
template <
typename T,
typename = typename std::enable_if<std::is_base_of<cpp_expression, T>::value>::type>
template <typename T, typename = typename std::enable_if<
std::is_base_of<cpp_expression, T>::value>::type>
cpp_template_argument(std::unique_ptr<T> expr)
: arg_(std::unique_ptr<cpp_expression>(std::move(expr)))
{
@ -285,9 +284,7 @@ namespace cppast
/// \effects Initializes it passing a template as argument.
/// This corresponds to a [cppast::cpp_template_template_parameter]().
cpp_template_argument(cpp_template_ref templ) : arg_(std::move(templ))
{
}
cpp_template_argument(cpp_template_ref templ) : arg_(std::move(templ)) {}
type_safe::optional_ref<const cpp_type> type() const noexcept
{

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
@ -67,9 +67,7 @@ namespace cppast
using difference_type = std::ptrdiff_t;
using iterator_category = std::forward_iterator_tag;
intrusive_list_iterator() noexcept : cur_(nullptr)
{
}
intrusive_list_iterator() noexcept : cur_(nullptr) {}
reference operator*() const noexcept
{
@ -107,9 +105,7 @@ namespace cppast
}
private:
intrusive_list_iterator(T* ptr) : cur_(ptr)
{
}
intrusive_list_iterator(T* ptr) : cur_(ptr) {}
T* cur_;
@ -124,17 +120,15 @@ namespace cppast
intrusive_list() = default;
//=== modifiers ===//
template <
typename Dummy = T,
typename = typename std::enable_if<std::is_same<Dummy, cpp_file>::value>::type>
template <typename Dummy = T, typename = typename std::enable_if<
std::is_same<Dummy, cpp_file>::value>::type>
void push_back(std::unique_ptr<T> obj) noexcept
{
push_back_impl(std::move(obj));
}
template <
typename U,
typename = typename std::enable_if<!std::is_same<T, cpp_file>::value, U>::type>
template <typename U, typename = typename std::enable_if<
!std::is_same<T, cpp_file>::value, U>::type>
void push_back(const U& parent, std::unique_ptr<T> obj) noexcept
{
push_back_impl(std::move(obj));

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
@ -18,9 +18,7 @@ namespace cppast
{
public:
/// \effects Creates it either as verbose or not.
explicit diagnostic_logger(bool is_verbose = false) noexcept : verbose_(is_verbose)
{
}
explicit diagnostic_logger(bool is_verbose = false) noexcept : verbose_(is_verbose) {}
diagnostic_logger(const diagnostic_logger&) = delete;
diagnostic_logger& operator=(const diagnostic_logger&) = delete;

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.