| 85 | } |
| 86 | |
| 87 | bool detail::VisitorBase::ShouldEndGroup( |
| 88 | const ItemProperties *pProperties) |
| 89 | { |
| 90 | const auto properties = |
| 91 | pProperties ? pProperties->GetProperties() : ItemProperties::None; |
| 92 | |
| 93 | bool inlined = false; |
| 94 | |
| 95 | switch (properties) { |
| 96 | case ItemProperties::Inline: { |
| 97 | inlined = true; |
| 98 | break; |
| 99 | } |
| 100 | case ItemProperties::Section: { |
| 101 | if ( !needSeparator.empty() ) |
| 102 | needSeparator.back() = true; |
| 103 | break; |
| 104 | } |
| 105 | case ItemProperties::Whole: |
| 106 | case ItemProperties::Extension: { |
| 107 | firstItem.pop_back(); |
| 108 | needSeparator.pop_back(); |
| 109 | break; |
| 110 | } |
| 111 | default: |
| 112 | break; |
| 113 | } |
| 114 | |
| 115 | return !inlined; |
| 116 | } |
| 117 | |
| 118 | bool detail::VisitorBase::ShouldDoSeparator() |
| 119 | { |
nothing calls this directly
no test coverage detected