16 #ifndef LLVM_CLANG_TOOLING_REPLACEMENTSYAML_H
17 #define LLVM_CLANG_TOOLING_REPLACEMENTSYAML_H
20 #include "llvm/Support/YAMLTraits.h"
33 struct NormalizedReplacement {
39 Length(R.getLength()), ReplacementText(R.getReplacementText()) {}
53 MappingNormalization<NormalizedReplacement, clang::tooling::Replacement>
55 Io.mapRequired(
"FilePath", Keys->FilePath);
56 Io.mapRequired(
"Offset", Keys->Offset);
57 Io.mapRequired(
"Length", Keys->Length);
58 Io.mapRequired(
"ReplacementText", Keys->ReplacementText);
64 template <>
struct MappingTraits<clang::tooling::TranslationUnitReplacements> {