Update copyright notices

This commit is contained in:
Jonathan Müller 2022-02-07 20:43:22 +01:00
commit 62e571a4d6
133 changed files with 936 additions and 1103 deletions

View file

@ -1,6 +1,5 @@
// Copyright (C) 2017-2019 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.
// Copyright (C) 2017-2022 Jonathan Müller and cppast contributors
// SPDX-License-Identifier: MIT
#include <cppast/cpp_class.hpp>
@ -164,7 +163,7 @@ struct g
REQUIRE(child.name() == "public");
REQUIRE(child.kind() == cpp_entity_kind::access_specifier_t);
REQUIRE(static_cast<const cpp_access_specifier&>(child).access_specifier()
== cpp_public);
== cpp_public);
break;
case 2:
REQUIRE(child.name() == "m2");
@ -173,13 +172,13 @@ struct g
REQUIRE(child.name() == "private");
REQUIRE(child.kind() == cpp_entity_kind::access_specifier_t);
REQUIRE(static_cast<const cpp_access_specifier&>(child).access_specifier()
== cpp_private);
== cpp_private);
break;
case 4:
REQUIRE(child.name() == "private");
REQUIRE(child.kind() == cpp_entity_kind::access_specifier_t);
REQUIRE(static_cast<const cpp_access_specifier&>(child).access_specifier()
== cpp_private);
== cpp_private);
break;
case 5:
REQUIRE(child.name() == "m3");
@ -188,7 +187,7 @@ struct g
REQUIRE(child.name() == "protected");
REQUIRE(child.kind() == cpp_entity_kind::access_specifier_t);
REQUIRE(static_cast<const cpp_access_specifier&>(child).access_specifier()
== cpp_protected);
== cpp_protected);
break;
case 7:
REQUIRE(child.name() == "m4");
@ -218,8 +217,8 @@ struct g
REQUIRE(!base.is_virtual());
REQUIRE(equal_types(idx, base.type(),
*cpp_user_defined_type::build(
cpp_type_ref(cpp_entity_id(""), "a"))));
*cpp_user_defined_type::build(
cpp_type_ref(cpp_entity_id(""), "a"))));
}
else if (base.name() == "d")
{
@ -227,8 +226,8 @@ struct g
REQUIRE(!base.is_virtual());
REQUIRE(equal_types(idx, base.type(),
*cpp_user_defined_type::build(
cpp_type_ref(cpp_entity_id(""), "d"))));
*cpp_user_defined_type::build(
cpp_type_ref(cpp_entity_id(""), "d"))));
}
else
REQUIRE(false);
@ -253,8 +252,8 @@ struct g
REQUIRE(!base.is_virtual());
REQUIRE(equal_types(idx, base.type(),
*cpp_user_defined_type::build(
cpp_type_ref(cpp_entity_id(""), "ns::base"))));
*cpp_user_defined_type::build(
cpp_type_ref(cpp_entity_id(""), "ns::base"))));
}
else if (base.name() == "e")
{
@ -262,8 +261,8 @@ struct g
REQUIRE(base.is_virtual());
REQUIRE(equal_types(idx, base.type(),
*cpp_user_defined_type::build(
cpp_type_ref(cpp_entity_id(""), "e"))));
*cpp_user_defined_type::build(
cpp_type_ref(cpp_entity_id(""), "e"))));
}
else
REQUIRE(false);
@ -288,8 +287,8 @@ struct g
REQUIRE(!base.is_virtual());
REQUIRE(equal_types(idx, base.type(),
*cpp_user_defined_type::build(
cpp_type_ref(cpp_entity_id(""), "ns::base"))));
*cpp_user_defined_type::build(
cpp_type_ref(cpp_entity_id(""), "ns::base"))));
}
else
REQUIRE(false);