From 8e8debc8482b7241522e20243a65852c11c53fa4 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Mon, 13 Mar 2017 17:14:00 -0700 Subject: Put LineInfo in separate h/cpp --- toolsrc/src/LineInfo.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 toolsrc/src/LineInfo.cpp (limited to 'toolsrc/src/LineInfo.cpp') diff --git a/toolsrc/src/LineInfo.cpp b/toolsrc/src/LineInfo.cpp new file mode 100644 index 000000000..fa26355e4 --- /dev/null +++ b/toolsrc/src/LineInfo.cpp @@ -0,0 +1,11 @@ +#include "pch.h" +#include "LineInfo.h" +#include "vcpkg_Strings.h" + +namespace vcpkg +{ + std::string LineInfo::toString() const + { + return Strings::format("%s(%d)", this->file_name, this->line_number); + } +} -- cgit v1.2.3