Compare commits

...

2 Commits

  1. 2
      src/bot/base_commands.cpp
  2. 2
      src/bot/console/console.cpp
  3. 2
      src/bot/console/console.hpp
  4. 2
      src/bot/console/console_command_context.cpp
  5. 2
      src/bot/console/console_command_context.hpp
  6. 2
      src/bot/main.cpp
  7. 2
      src/bot/shutdown.cpp
  8. 2
      src/bot/shutdown.hpp
  9. 2
      src/common/config.cpp
  10. 2
      src/common/io/command.cpp
  11. 2
      src/common/io/command_context.cpp
  12. 2
      src/common/io/command_manager.cpp
  13. 2
      src/common/io/message.cpp
  14. 2
      src/common/object.cpp
  15. 2
      src/common/parser/parser.cpp
  16. 2
      src/common/parser/parser_manager.cpp
  17. 2
      src/common/parsers/json.cpp
  18. 2
      src/common/serialize.cpp
  19. 2
      src/common/thread_pool.cpp
  20. 2
      src/common/timer/cancel_token.cpp
  21. 2
      src/common/timer/synchronized_timer.cpp
  22. 2
      src/common/timer/timer.cpp
  23. 2
      src/common/timer/timer_context.cpp
  24. 2
      src/common/timer/timer_manager.cpp
  25. 2
      src/include/impl/parser_manager.hpp
  26. 2
      src/include/impl/timer_context.hpp
  27. 2
      src/include/impl/timer_manager.hpp
  28. 2
      src/include/jessilib/asio.hpp
  29. 2
      src/include/jessilib/assert.hpp
  30. 2
      src/include/jessilib/config.hpp
  31. 2
      src/include/jessilib/io/ansi/ansi_text.hpp
  32. 2
      src/include/jessilib/io/color.hpp
  33. 2
      src/include/jessilib/io/command.hpp
  34. 2
      src/include/jessilib/io/command_context.hpp
  35. 2
      src/include/jessilib/io/command_manager.hpp
  36. 2
      src/include/jessilib/io/irc/irc_text.hpp
  37. 2
      src/include/jessilib/io/message.hpp
  38. 2
      src/include/jessilib/object.hpp
  39. 2
      src/include/jessilib/parser.hpp
  40. 2
      src/include/jessilib/parsers/json.hpp
  41. 2
      src/include/jessilib/serialize.hpp
  42. 2
      src/include/jessilib/thread_pool.hpp
  43. 2
      src/include/jessilib/timer.hpp
  44. 2
      src/include/jessilib/type_traits.hpp
  45. 2
      src/include/jessilib/util.hpp
  46. 2
      src/test/app_parameters.cpp
  47. 2
      src/test/config.cpp
  48. 2
      src/test/duration.cpp
  49. 8
      src/test/http_query.cpp
  50. 2
      src/test/io/color.cpp
  51. 2
      src/test/object.cpp
  52. 2
      src/test/parser.cpp
  53. 2
      src/test/parsers/json.cpp
  54. 6
      src/test/test.hpp
  55. 2
      src/test/thread_pool.cpp
  56. 2
      src/test/timer.cpp
  57. 2
      src/test/unicode.cpp
  58. 6
      src/test/unicode_sequence.cpp
  59. 2
      src/test/util.cpp

2
src/bot/base_commands.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2020 Jessica James.
* Copyright (C) 2020-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/bot/console/console.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2020 Jessica James.
* Copyright (C) 2020-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/bot/console/console.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2020 Jessica James.
* Copyright (C) 2020-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/bot/console/console_command_context.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2020 Jessica James.
* Copyright (C) 2020-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/bot/console/console_command_context.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2020 Jessica James.
* Copyright (C) 2020-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/bot/main.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2019 Jessica James.
* Copyright (C) 2019-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/bot/shutdown.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2020 Jessica James.
* Copyright (C) 2020-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/bot/shutdown.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2020 Jessica James.
* Copyright (C) 2020-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/common/config.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/common/io/command.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2019 Jessica James.
* Copyright (C) 2019-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/common/io/command_context.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2019 Jessica James.
* Copyright (C) 2019-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/common/io/command_manager.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2020 Jessica James.
* Copyright (C) 2020-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/common/io/message.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2019 Jessica James.
* Copyright (C) 2019-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/common/object.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/common/parser/parser.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/common/parser/parser_manager.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/common/parsers/json.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/common/serialize.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/common/thread_pool.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/common/timer/cancel_token.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/common/timer/synchronized_timer.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/common/timer/timer.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2017-2018 Jessica James.
* Copyright (C) 2017-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/common/timer/timer_context.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/common/timer/timer_manager.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2017-2018 Jessica James.
* Copyright (C) 2017-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/impl/parser_manager.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/impl/timer_context.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/impl/timer_manager.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2017-2018 Jessica James.
* Copyright (C) 2017-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/jessilib/asio.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/jessilib/assert.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/jessilib/config.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/jessilib/io/ansi/ansi_text.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2020 Jessica James.
* Copyright (C) 2020-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/jessilib/io/color.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2020 Jessica James.
* Copyright (C) 2020-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/jessilib/io/command.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2019 Jessica James.
* Copyright (C) 2019-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/jessilib/io/command_context.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2019 Jessica James.
* Copyright (C) 2019-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/jessilib/io/command_manager.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2019 Jessica James.
* Copyright (C) 2019-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/jessilib/io/irc/irc_text.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2019-2020 Jessica James.
* Copyright (C) 2019-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/jessilib/io/message.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2019 Jessica James.
* Copyright (C) 2019-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/jessilib/object.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/jessilib/parser.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/jessilib/parsers/json.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/jessilib/serialize.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/jessilib/thread_pool.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/jessilib/timer.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2017-2018 Jessica James.
* Copyright (C) 2017-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/jessilib/type_traits.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/include/jessilib/util.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/test/app_parameters.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2020 Jessica James.
* Copyright (C) 2020-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/test/config.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/test/duration.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

8
src/test/http_query.cpp

@ -23,15 +23,15 @@
using namespace std::literals;
// Compile-time tests for constexpr on compilers which support C++20 constexpr std::string
#ifdef __cpp_lib_constexpr_string
#if defined(__cpp_lib_constexpr_string) && (__GNUC__ >= 12 || _MSC_VER >= 1929)
constexpr std::string query_constexpr(std::string_view in_expression) {
std::string result{ static_cast<std::string>(in_expression) };
jessilib::deserialize_http_query(result);
return result;
}
static_assert(query_constexpr("test"s) == "test"s);
static_assert(query_constexpr("first+second"s) == "first second"s);
static_assert(query_constexpr("first%20second"s) == "first second"s);
ASSERT_COMPILES_CONSTEXPR(return query_constexpr("test"s) == "test"s);
ASSERT_COMPILES_CONSTEXPR(return query_constexpr("first+second"s) == "first second"s);
ASSERT_COMPILES_CONSTEXPR(return query_constexpr("first%20second"s) == "first second"s);
#endif // __cpp_lib_constexpr_string
using char_types = ::testing::Types<char, char8_t, char16_t, char32_t>;

2
src/test/io/color.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2020 Jessica James.
* Copyright (C) 2020-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/test/object.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/test/parser.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/test/parsers/json.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

6
src/test/test.hpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@ -22,7 +22,11 @@
#include "gtest/gtest.h"
// Helper macros
#define ASSERT_COMPILES(expr) static_assert([]() { expr; } != nullptr, "Your compiler is whack yo");
#define ASSERT_COMPILES_CONSTEXPR(expr) static_assert([]() constexpr { expr; } != nullptr, "Your compiler is whack yo");
#define UNIQUE_LABEL( LABEL ) LABEL ## __LINE__ ## __
#define repeat( ITERATIONS ) for (size_t UNIQUE_LABEL(iteration_) = 0; UNIQUE_LABEL(iteration_) != (ITERATIONS); ++ UNIQUE_LABEL(iteration_) )
#define JESSITEST_CONCAT(lhs, rhs) JESSITEST_CONCAT_HELPER(lhs, rhs)
#define JESSITEST_CONCAT_HELPER(lhs, rhs) lhs ## rhs
using base_test = ::testing::Test;

2
src/test/thread_pool.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/test/timer.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2017-2018 Jessica James.
* Copyright (C) 2017-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

2
src/test/unicode.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

6
src/test/unicode_sequence.cpp

@ -24,14 +24,14 @@
using namespace std::literals;
// Compile-time tests for constexpr on compilers which support C++20 constexpr std::string
#ifdef __cpp_lib_constexpr_string
#if defined(__cpp_lib_constexpr_string) && (__GNUC__ >= 12 || _MSC_VER >= 1929)
constexpr std::string cpp_constexpr(std::string_view in_expression) {
std::string result{ static_cast<std::string>(in_expression) };
jessilib::apply_cpp_escape_sequences(result);
return result;
}
static_assert(cpp_constexpr("test"s) == "test"s);
static_assert(cpp_constexpr("\\r\\n"s) == "\r\n"s);
ASSERT_COMPILES_CONSTEXPR(return cpp_constexpr("test"s) == "test"s);
ASSERT_COMPILES_CONSTEXPR(return cpp_constexpr("\\r\\n"s) == "\r\n"s);
#endif // __cpp_lib_constexpr_string
using char_types = ::testing::Types<char, char8_t, char16_t, char32_t>;

2
src/test/util.cpp

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Jessica James.
* Copyright (C) 2018-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above

Loading…
Cancel
Save