MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / FormatOptions

Class FormatOptions

utils/dasFormatter/formatter.h:27–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 1

test_casesFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_casesFunction · 0.68