Updated copyright headers

This commit is contained in:
gabime
2019-06-04 00:09:16 +03:00
parent eea9d6136f
commit bcfa9241b8
56 changed files with 145 additions and 126 deletions

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
@@ -93,15 +93,15 @@ SPDLOG_INLINE void spdlog::sinks::ansicolor_sink<TargetStream, ConsoleMutex>::se
{
switch (mode)
{
case color_mode::always:
should_do_colors_ = true;
return;
case color_mode::automatic:
should_do_colors_ = details::os::in_terminal(target_file_) && details::os::is_color_terminal();
return;
case color_mode::never:
should_do_colors_ = false;
return;
case color_mode::always:
should_do_colors_ = true;
return;
case color_mode::automatic:
should_do_colors_ = details::os::in_terminal(target_file_) && details::os::is_color_terminal();
return;
case color_mode::never:
should_do_colors_ = false;
return;
}
}

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
@@ -77,7 +77,6 @@ private:
void print_range_(const fmt::memory_buffer &formatted, size_t start, size_t end);
};
using ansicolor_stdout_sink_mt = ansicolor_sink<details::console_stdout, details::console_mutex>;
using ansicolor_stdout_sink_st = ansicolor_sink<details::console_stdout, details::console_nullmutex>;

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
@@ -26,7 +26,6 @@ using stderr_color_sink_st = ansicolor_stderr_sink_st;
#endif
} // namespace sinks
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr<logger> stdout_color_mt(const std::string &logger_name, color_mode mode = color_mode::automatic);

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
@@ -91,15 +91,15 @@ void SPDLOG_INLINE wincolor_sink<TargetStream, ConsoleMutex>::set_color_mode(col
{
switch (mode)
{
case color_mode::always:
case color_mode::automatic:
should_do_colors_ = true;
break;
case color_mode::never:
should_do_colors_ = false;
break;
default:
should_do_colors_ = true;
case color_mode::always:
case color_mode::automatic:
should_do_colors_ = true;
break;
case color_mode::never:
should_do_colors_ = false;
break;
default:
should_do_colors_ = true;
}
}

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once