nicole mazzuca 6a41626eaf
[vcpkg] Format the C++ in CI (#11655)
* [vcpkg] Format the C++ in the CI

* format the C++

* CR
2020-07-06 16:45:34 -07:00

22 lines
505 B
C++

#pragma once
#include <string>
namespace vcpkg
{
struct LineInfo
{
constexpr LineInfo() noexcept : m_line_number(0), m_file_name("") { }
constexpr LineInfo(const int lineno, const char* filename) : m_line_number(lineno), m_file_name(filename) { }
std::string to_string() const;
void to_string(std::string& out) const;
private:
int m_line_number;
const char* m_file_name;
};
}
#define VCPKG_LINE_INFO vcpkg::LineInfo(__LINE__, __FILE__)