]> granicus.if.org Git - clang/commitdiff
YAML I/O - Added default trait support for std:string. Making another attempt at...
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>
Tue, 19 Nov 2013 17:28:21 +0000 (17:28 +0000)
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>
Tue, 19 Nov 2013 17:28:21 +0000 (17:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195134 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Tooling/ReplacementsYaml.h

index 18d3259d70583b40ea0f500c36250d878c3cfa91..39ca0fe5c8b423356f78def1042fd59a0bbb7954 100644 (file)
@@ -26,18 +26,6 @@ LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::Replacement)
 namespace llvm {
 namespace yaml {
 
-/// \brief ScalarTraits to read/write std::string objects.
-template <> struct ScalarTraits<std::string> {
-  static void output(const std::string &Val, void *, llvm::raw_ostream &Out) {
-    Out << Val;
-  }
-
-  static StringRef input(StringRef Scalar, void *, std::string &Val) {
-    Val = Scalar;
-    return StringRef();
-  }
-};
-
 /// \brief Specialized MappingTraits to describe how a Replacement is
 /// (de)serialized.
 template <> struct MappingTraits<clang::tooling::Replacement> {