aboutsummaryrefslogtreecommitdiffstats
path: root/include/lldb/Core/PropertiesBase.td
blob: be97d44ae8e4fdecbebea1cc4b8c82b89622623a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Base class for all options.
class Property<string name, string type> {
  string Name = name;
  string Type = type;
  string Definition;
}

// Sets the description for the property that should be displayed to the user.
class Desc<string description> {
  string Description = description;
}

// Marks the property as global.
class Global {
  bit Global = 1;
}

class DefaultTrue {
  int DefaultUnsignedValue = 1;
  bit HasDefaultUnsignedValue = 1;
}

class DefaultFalse {
  int DefaultUnsignedValue = 0;
  bit HasDefaultUnsignedValue = 1;
}

// Gives the property a default string value.
class DefaultStringValue<string value> {
  string DefaultStringValue = value;
  bit HasDefaultStringValue = 1;
}

// Gives the property a default enum value.
class DefaultEnumValue<string value> {
  string DefaultEnumValue = value;
  bit HasDefaultEnumValue = 1;
}

// Gives the property a default string value.
class DefaultUnsignedValue<int value> {
  int DefaultUnsignedValue = value;
  bit HasDefaultUnsignedValue = 1;
}

// Gives the property enum values.
class EnumValues<string enum> {
  string EnumValues = enum;
}