aboutsummaryrefslogtreecommitdiff
path: root/lldb/include/lldb/Core/PropertiesBase.td
blob: 1be3b908ed410289519d134f9f145cec3417a108 (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
50
51
52
53
54
55
56
57
// 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;
  bit HasDefaultBooleanValue = 1;
}

class DefaultFalse {
  int DefaultUnsignedValue = 0;
  bit HasDefaultUnsignedValue = 1;
  bit HasDefaultBooleanValue = 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;
}

// Determines the element type for arrays and dictionaries.
class ElementType<string value> {
  string ElementType = value;
  bit HasElementType = 1;
}