| 831 | } |
| 832 | |
| 833 | struct SortConfiguration |
| 834 | { |
| 835 | enum class OrderMode |
| 836 | { |
| 837 | DEFAULT, |
| 838 | ASCENDING, |
| 839 | DESCENDING, |
| 840 | } Order = OrderMode::DEFAULT; |
| 841 | |
| 842 | enum class CompareMethod |
| 843 | { |
| 844 | DEFAULT, |
| 845 | STRING, |
| 846 | FILE_BASENAME, |
| 847 | NATURAL, |
| 848 | } Compare = CompareMethod::DEFAULT; |
| 849 | |
| 850 | enum class CaseSensitivity |
| 851 | { |
| 852 | DEFAULT, |
| 853 | SENSITIVE, |
| 854 | INSENSITIVE, |
| 855 | } Case = CaseSensitivity::DEFAULT; |
| 856 | |
| 857 | // declare the default constructor to work-around clang bug |
| 858 | SortConfiguration(); |
| 859 | |
| 860 | SortConfiguration(OrderMode order, CompareMethod compare, |
| 861 | CaseSensitivity caseSensitivity) |
| 862 | : Order(order) |
| 863 | , Compare(compare) |
| 864 | , Case(caseSensitivity) |
| 865 | { |
| 866 | } |
| 867 | }; |
| 868 | cmList& sort(SortConfiguration config = SortConfiguration{}); |
| 869 | |
| 870 | // exception raised on error during transform operations |
no outgoing calls
no test coverage detected
searching dependent graphs…