| 25 | }; |
| 26 | |
| 27 | class FormatOptions { |
| 28 | public: |
| 29 | FormatOptions() = default; |
| 30 | FormatOptions(das_hash_set<FormatOpt> options_) : options(das::move(options_)) {} |
| 31 | |
| 32 | bool contains(FormatOpt opt) const { |
| 33 | return options.count(opt); |
| 34 | } |
| 35 | |
| 36 | void insert(FormatOpt opt) { |
| 37 | options.emplace(opt); |
| 38 | } |
| 39 | |
| 40 | private: |
| 41 | das_hash_set<FormatOpt> options; |
| 42 | }; |
| 43 | |
| 44 | struct Pos { |
| 45 | uint32_t line; |