mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
LineInfo::toString() -> LineInfo::to_string()
This commit is contained in:
parent
2d7beb71e7
commit
dac8ace761
@ -10,7 +10,7 @@ namespace vcpkg
|
||||
constexpr LineInfo() : line_number(0), file_name(nullptr) {}
|
||||
constexpr LineInfo(const int line_number, const char* file_name) : line_number(line_number), file_name(file_name) {}
|
||||
|
||||
std::string toString() const;
|
||||
std::string to_string() const;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
namespace vcpkg
|
||||
{
|
||||
std::string LineInfo::toString() const
|
||||
std::string LineInfo::to_string() const
|
||||
{
|
||||
return Strings::format("%s(%d)", this->file_name, this->line_number);
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ namespace vcpkg::Checks
|
||||
void unreachable(const LineInfo& line_info)
|
||||
{
|
||||
System::println(System::Color::error, "Error: Unreachable code was reached");
|
||||
System::println(System::Color::error, line_info.toString()); // Always print line_info here
|
||||
System::println(System::Color::error, line_info.to_string()); // Always print line_info here
|
||||
#ifndef NDEBUG
|
||||
std::abort();
|
||||
#else
|
||||
@ -22,7 +22,7 @@ namespace vcpkg::Checks
|
||||
{
|
||||
if (g_debugging)
|
||||
{
|
||||
System::println(System::Color::error, line_info.toString());
|
||||
System::println(System::Color::error, line_info.to_string());
|
||||
}
|
||||
|
||||
::exit(exit_code);
|
||||
|
Loading…
x
Reference in New Issue
Block a user