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.

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,8 @@ using h = g<T, a>;
}
else if (alias.name() == "b")
{
check_template_parameters(alias,
{{cpp_entity_kind::non_type_template_parameter_t, "I"},
{cpp_entity_kind::template_type_parameter_t, "T"}});
check_template_parameters(alias, {{cpp_entity_kind::non_type_template_parameter_t, "I"},
{cpp_entity_kind::template_type_parameter_t, "T"}});
REQUIRE(equal_types(idx, alias.type_alias().underlying_type(),
*cpp_template_parameter_type::build(
cpp_template_type_parameter_ref(cpp_entity_id(""), "T"))));

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.
@ -95,8 +95,8 @@ struct g
)";
cpp_entity_index idx;
auto file = parse(idx, "cpp_class.cpp", code);
auto count = test_visit<cpp_class>(*file, [&](const cpp_class& c) {
auto file = parse(idx, "cpp_class.cpp", code);
auto count = test_visit<cpp_class>(*file, [&](const cpp_class& c) {
if (c.name() == "a" || c.name() == "base")
{
REQUIRE(c.class_kind() == cpp_class_kind::struct_t);
@ -217,18 +217,18 @@ struct g
REQUIRE(base.access_specifier() == cpp_private);
REQUIRE(!base.is_virtual());
REQUIRE(
equal_types(idx, base.type(), *cpp_user_defined_type::build(
cpp_type_ref(cpp_entity_id(""), "a"))));
REQUIRE(equal_types(idx, base.type(),
*cpp_user_defined_type::build(
cpp_type_ref(cpp_entity_id(""), "a"))));
}
else if (base.name() == "d")
{
REQUIRE(base.access_specifier() == cpp_private);
REQUIRE(!base.is_virtual());
REQUIRE(
equal_types(idx, base.type(), *cpp_user_defined_type::build(
cpp_type_ref(cpp_entity_id(""), "d"))));
REQUIRE(equal_types(idx, base.type(),
*cpp_user_defined_type::build(
cpp_type_ref(cpp_entity_id(""), "d"))));
}
else
REQUIRE(false);
@ -261,9 +261,9 @@ struct g
REQUIRE(base.access_specifier() == cpp_protected);
REQUIRE(base.is_virtual());
REQUIRE(
equal_types(idx, base.type(), *cpp_user_defined_type::build(
cpp_type_ref(cpp_entity_id(""), "e"))));
REQUIRE(equal_types(idx, base.type(),
*cpp_user_defined_type::build(
cpp_type_ref(cpp_entity_id(""), "e"))));
}
else
REQUIRE(false);
@ -301,4 +301,3 @@ struct g
});
REQUIRE(count == 12u);
}

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.

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.

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.
@ -13,26 +13,16 @@ TEST_CASE("parse_files")
class null_compile_config : public compile_config
{
public:
null_compile_config() : compile_config({})
{
}
null_compile_config() : compile_config({}) {}
private:
void do_set_flags(cpp_standard, compile_flags) override
{
}
void do_set_flags(cpp_standard, compile_flags) override {}
void do_add_include_dir(std::string) override
{
}
void do_add_include_dir(std::string) override {}
void do_add_macro_definition(std::string, std::string) override
{
}
void do_add_macro_definition(std::string, std::string) override {}
void do_remove_macro_definition(std::string) override
{
}
void do_remove_macro_definition(std::string) override {}
const char* do_get_name() const noexcept override
{
@ -45,9 +35,7 @@ TEST_CASE("parse_files")
public:
using config = null_compile_config;
null_parser() : parser(type_safe::ref(logger_))
{
}
null_parser() : parser(type_safe::ref(logger_)) {}
private:
std::unique_ptr<cpp_file> do_parse(const cpp_entity_index& idx, std::string path,

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.