diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-13 17:14:00 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-13 17:56:21 -0700 |
| commit | 8e8debc8482b7241522e20243a65852c11c53fa4 (patch) | |
| tree | 68b0d4966b5705e3e80769662ffe7487d49ffc4f /toolsrc/src/LineInfo.cpp | |
| parent | 2590371023b7eaebbd81f857a76ec95556b80705 (diff) | |
| download | vcpkg-8e8debc8482b7241522e20243a65852c11c53fa4.tar.gz vcpkg-8e8debc8482b7241522e20243a65852c11c53fa4.zip | |
Put LineInfo in separate h/cpp
Diffstat (limited to 'toolsrc/src/LineInfo.cpp')
| -rw-r--r-- | toolsrc/src/LineInfo.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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); + } +} |
