13 if ((source_location.
filename() ==
nullptr) || (source_location.
line() == 0))
16 return os << source_location.
filename() <<
':' << source_location.
line();
21 #if defined(FMT_VERSION)
22 template <>
struct fmt::formatter<
CppCommon::SourceLocation> : ostream_formatter {};
int line() const noexcept
Get line number.
const char * filename() const noexcept
Get file name.
C++ Common project definitions.
std::ostream & operator<<(std::ostream &os, const uint128_t &value)