r195134 - YAML I/O - Added default trait support for std:string. Making another attempt at this, this time doing a clean build on Linux, and running the LLVM, clang, and extra tests, to try to make sure there's no problems.

John Thompson John.Thompson.JTSoftware at gmail.com
Tue Nov 19 09:28:21 PST 2013


Author: jtsoftware
Date: Tue Nov 19 11:28:21 2013
New Revision: 195134

URL: http://llvm.org/viewvc/llvm-project?rev=195134&view=rev
Log:
YAML I/O - Added default trait support for std:string.  Making another attempt at this, this time doing a clean build on Linux, and running the LLVM, clang, and extra tests, to try to make sure there's no problems.

Modified:
    cfe/trunk/include/clang/Tooling/ReplacementsYaml.h

Modified: cfe/trunk/include/clang/Tooling/ReplacementsYaml.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Tooling/ReplacementsYaml.h?rev=195134&r1=195133&r2=195134&view=diff
==============================================================================
--- cfe/trunk/include/clang/Tooling/ReplacementsYaml.h (original)
+++ cfe/trunk/include/clang/Tooling/ReplacementsYaml.h Tue Nov 19 11:28:21 2013
@@ -26,18 +26,6 @@ LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tool
 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> {





More information about the cfe-commits mailing list