aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/LineInfo.cpp
diff options
context:
space:
mode:
authorThomas Fussell <thomas.fussell@gmail.com>2017-03-17 00:33:06 -0400
committerThomas Fussell <thomas.fussell@gmail.com>2017-03-17 00:33:06 -0400
commitd821b0a28a7223d0b49745c53a3ff032fcb001c8 (patch)
tree12e13d5ff298a4e4b4f946ceb90b49cbfbe2d2c9 /toolsrc/src/LineInfo.cpp
parent4921636f6bc92e041a410870ce564615c85a6cfb (diff)
parent01b1e39c6a006adba7b9cf2af758be679d0b7eb9 (diff)
downloadvcpkg-d821b0a28a7223d0b49745c53a3ff032fcb001c8.tar.gz
vcpkg-d821b0a28a7223d0b49745c53a3ff032fcb001c8.zip
Merge branch 'master' of https://github.com/Microsoft/vcpkg
Diffstat (limited to 'toolsrc/src/LineInfo.cpp')
-rw-r--r--toolsrc/src/LineInfo.cpp11
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);
+ }
+}