| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | #include "clang/Tooling/Inclusions/IncludeStyle.h" |
| 10 | |
| 11 | using clang::tooling::IncludeStyle; |
| 12 | |
| 13 | namespace llvm { |
| 14 | namespace yaml { |
| 15 | |
| 16 | void MappingTraits<IncludeStyle::IncludeCategory>::mapping( |
| 17 | IO &IO, IncludeStyle::IncludeCategory &Category) { |
| 18 | IO.mapOptional("Regex", Category.Regex); |
| 19 | IO.mapOptional("Priority", Category.Priority); |
| 20 | } |
| 21 | |
| 22 | void ScalarEnumerationTraits<IncludeStyle::IncludeBlocksStyle>::enumeration( |
| 23 | IO &IO, IncludeStyle::IncludeBlocksStyle &Value) { |
| 24 | IO.enumCase(Value, "Preserve", IncludeStyle::IBS_Preserve); |
| 25 | IO.enumCase(Value, "Merge", IncludeStyle::IBS_Merge); |
| 26 | IO.enumCase(Value, "Regroup", IncludeStyle::IBS_Regroup); |
| 27 | } |
| 28 | |
| 29 | } |
| 30 | } |
| 31 | |