15 #ifndef LLVM_CLANG_TOOLING_REPLACEMENTSYAML_H
16 #define LLVM_CLANG_TOOLING_REPLACEMENTSYAML_H
19 #include "llvm/Support/YAMLTraits.h"
29 template <>
struct MappingTraits<
clang::tooling::Replacement> {
32 struct NormalizedReplacement {
36 : FilePath(R.getFilePath()),
Offset(R.getOffset()),
37 Length(R.getLength()), ReplacementText(R.getReplacementText()) {}
51 MappingNormalization<NormalizedReplacement, clang::tooling::Replacement>
53 Io.mapRequired(
"FilePath", Keys->FilePath);
54 Io.mapRequired(
"Offset", Keys->Offset);
55 Io.mapRequired(
"Length", Keys->Length);
56 Io.mapRequired(
"ReplacementText", Keys->ReplacementText);
62 template <>
struct MappingTraits<
clang::tooling::TranslationUnitReplacements> {
The JSON file list parser is used to communicate input to InstallAPI.
Diagnostic wrappers for TextAPI types for error reporting.