16 #ifndef LLVM_CLANG_TOOLING_REPLACEMENTSYAML_H 17 #define LLVM_CLANG_TOOLING_REPLACEMENTSYAML_H 20 #include "llvm/Support/YAMLTraits.h" 30 template <>
struct MappingTraits<
clang::tooling::Replacement> {
33 struct NormalizedReplacement {
35 : FilePath(
""),
Offset(0), Length(0), ReplacementText(
"") {}
38 : FilePath(R.getFilePath()),
Offset(R.getOffset()),
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> {
DominatorTree GraphTraits specialization so the DominatorTree can be iterable by generic graph iterat...
Dataflow Directional Tag Classes.