r193346 - Tooling/ReplacementsYaml.h: Prune Tooling's llvm::yaml::ScalarTraits<std::string> corresponding to LLVM r193344.
NAKAMURA Takumi
geek4civic at gmail.com
Thu Oct 24 07:24:30 PDT 2013
Author: chapuni
Date: Thu Oct 24 09:24:30 2013
New Revision: 193346
URL: http://llvm.org/viewvc/llvm-project?rev=193346&view=rev
Log:
Tooling/ReplacementsYaml.h: Prune Tooling's llvm::yaml::ScalarTraits<std::string> corresponding to LLVM r193344.
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=193346&r1=193345&r2=193346&view=diff
==============================================================================
--- cfe/trunk/include/clang/Tooling/ReplacementsYaml.h (original)
+++ cfe/trunk/include/clang/Tooling/ReplacementsYaml.h Thu Oct 24 09:24:30 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