summaryrefslogtreecommitdiffstats
path: root/vendor/modernc.org/cc/v3/stringer.go
blob: 66b888aed41e13068cb33945159bb2e2a943bb92 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// Code generated by "stringer -output stringer.go -linecomment -type=Kind,Linkage"; DO NOT EDIT.

package cc

import "strconv"

func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[Invalid-0]
	_ = x[Array-1]
	_ = x[Bool-2]
	_ = x[Char-3]
	_ = x[ComplexChar-4]
	_ = x[ComplexDouble-5]
	_ = x[ComplexFloat-6]
	_ = x[ComplexInt-7]
	_ = x[ComplexLong-8]
	_ = x[ComplexLongDouble-9]
	_ = x[ComplexLongLong-10]
	_ = x[ComplexShort-11]
	_ = x[ComplexUInt-12]
	_ = x[ComplexULong-13]
	_ = x[ComplexULongLong-14]
	_ = x[ComplexUShort-15]
	_ = x[Decimal128-16]
	_ = x[Decimal32-17]
	_ = x[Decimal64-18]
	_ = x[Double-19]
	_ = x[Enum-20]
	_ = x[Float-21]
	_ = x[Float128-22]
	_ = x[Float32-23]
	_ = x[Float32x-24]
	_ = x[Float64-25]
	_ = x[Float64x-26]
	_ = x[Function-27]
	_ = x[Int-28]
	_ = x[Int8-29]
	_ = x[Int16-30]
	_ = x[Int32-31]
	_ = x[Int64-32]
	_ = x[Int128-33]
	_ = x[Long-34]
	_ = x[LongDouble-35]
	_ = x[LongLong-36]
	_ = x[Ptr-37]
	_ = x[SChar-38]
	_ = x[Short-39]
	_ = x[Struct-40]
	_ = x[TypedefName-41]
	_ = x[UChar-42]
	_ = x[UInt-43]
	_ = x[UInt8-44]
	_ = x[UInt16-45]
	_ = x[UInt32-46]
	_ = x[UInt64-47]
	_ = x[UInt128-48]
	_ = x[ULong-49]
	_ = x[ULongLong-50]
	_ = x[UShort-51]
	_ = x[Union-52]
	_ = x[Void-53]
	_ = x[Vector-54]
	_ = x[typeofExpr-55]
	_ = x[typeofType-56]
	_ = x[maxKind-57]
}

const _Kind_name = "InvalidT[]_Boolcharcomplex charcomplex doublecomplex floatcomplex intcomplex longcomplex long doublecomplex long longcomplex shortcomplex unsignedcomplex unsigned longcomplex unsigned long longcomplex shor_Decimal128_Decimal32_Decimal64doubleenumfloat_Float128_Float32_Float32x_Float64_Float64xfunctionint__int8__int16__int32__int64__int128longlong doublelong longpointersigned charshortstructtypedefnameunsigned charunsignedunsigned __int8unsigned __int16unsigned __int32unsigned __int64unsigned __int128unsigned longunsigned long longunsigned shortunionvoidvectortypeofExprtypeofTypemaxKind"

var _Kind_index = [...]uint16{0, 7, 10, 15, 19, 31, 45, 58, 69, 81, 100, 117, 130, 146, 167, 193, 205, 216, 226, 236, 242, 246, 251, 260, 268, 277, 285, 294, 302, 305, 311, 318, 325, 332, 340, 344, 355, 364, 371, 382, 387, 393, 404, 417, 425, 440, 456, 472, 488, 505, 518, 536, 550, 555, 559, 565, 575, 585, 592}

func (i Kind) String() string {
	if i >= Kind(len(_Kind_index)-1) {
		return "Kind(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _Kind_name[_Kind_index[i]:_Kind_index[i+1]]
}
func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[None-0]
	_ = x[Internal-1]
	_ = x[External-2]
}

const _Linkage_name = "NoneInternalExternal"

var _Linkage_index = [...]uint8{0, 4, 12, 20}

func (i Linkage) String() string {
	if i < 0 || i >= Linkage(len(_Linkage_index)-1) {
		return "Linkage(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _Linkage_name[_Linkage_index[i]:_Linkage_index[i+1]]
}