|
@@ -33,12 +33,15 @@ const cmChar_t* _cmTfFlagsToLabel( unsigned flags )
|
33
|
33
|
{
|
34
|
34
|
switch(flags)
|
35
|
35
|
{
|
36
|
|
- case kFuncTfFl: return "p";
|
37
|
|
- case kEnumTfFl: return "e";
|
38
|
|
- case kMacroTfFl: return "m";
|
39
|
|
- case kTypedefTfFl: return "t";
|
40
|
|
- case kFieldTfFl: return "f";
|
41
|
|
- case kExternTfFl: return "x";
|
|
36
|
+ case kFuncProtoTfFl: return "p";
|
|
37
|
+ case kFuncDefnTfFl: return "d";
|
|
38
|
+ case kEnumTfFl: return "e";
|
|
39
|
+ case kMacroTfFl: return "m";
|
|
40
|
+ case kTypedefTfFl: return "t";
|
|
41
|
+ case kFieldTfFl: return "f";
|
|
42
|
+ case kExternTfFl: return "x";
|
|
43
|
+ case kStructTagTfFl:return "s";
|
|
44
|
+ case kUnionTagTfFl: return "u";
|
42
|
45
|
default:
|
43
|
46
|
{ assert(0); }
|
44
|
47
|
}
|
|
@@ -125,7 +128,11 @@ cmTfRC_t _cmTfParseLine( cmTf_t* p, const cmChar_t* fn, unsigned line, cmChar_t*
|
125
|
128
|
break;
|
126
|
129
|
|
127
|
130
|
case 'p': // function prototype
|
128
|
|
- r.flags |= kFuncTfFl;
|
|
131
|
+ r.flags |= kFuncProtoTfFl;
|
|
132
|
+ break;
|
|
133
|
+
|
|
134
|
+ case 'f': // function defn
|
|
135
|
+ r.flags |= kFuncDefnTfFl;
|
129
|
136
|
break;
|
130
|
137
|
|
131
|
138
|
case 't': // typedef
|
|
@@ -140,6 +147,14 @@ cmTfRC_t _cmTfParseLine( cmTf_t* p, const cmChar_t* fn, unsigned line, cmChar_t*
|
140
|
147
|
r.flags |= kExternTfFl;
|
141
|
148
|
break;
|
142
|
149
|
|
|
150
|
+ case 's': // struct tag
|
|
151
|
+ r.flags |= kStructTagTfFl;
|
|
152
|
+ break;
|
|
153
|
+
|
|
154
|
+ case 'u': // union tag
|
|
155
|
+ r.flags |= kUnionTagTfFl;
|
|
156
|
+ break;
|
|
157
|
+
|
143
|
158
|
default: // unrecognized type
|
144
|
159
|
return rc;
|
145
|
160
|
}
|