20
20
#include " llvm/ADT/Hashing.h"
21
21
#include " llvm/ADT/iterator.h"
22
22
23
- #include < climits>
24
-
25
23
namespace clang {
26
24
27
25
// / Predefined declaration IDs.
@@ -32,65 +30,62 @@ namespace clang {
32
30
// / it is created.
33
31
enum PredefinedDeclIDs {
34
32
// / The NULL declaration.
35
- PREDEF_DECL_NULL_ID = 0 ,
33
+ PREDEF_DECL_NULL_ID,
36
34
37
35
// / The translation unit.
38
- PREDEF_DECL_TRANSLATION_UNIT_ID = 1 ,
36
+ PREDEF_DECL_TRANSLATION_UNIT_ID,
39
37
40
38
// / The Objective-C 'id' type.
41
- PREDEF_DECL_OBJC_ID_ID = 2 ,
39
+ PREDEF_DECL_OBJC_ID_ID,
42
40
43
41
// / The Objective-C 'SEL' type.
44
- PREDEF_DECL_OBJC_SEL_ID = 3 ,
42
+ PREDEF_DECL_OBJC_SEL_ID,
45
43
46
44
// / The Objective-C 'Class' type.
47
- PREDEF_DECL_OBJC_CLASS_ID = 4 ,
45
+ PREDEF_DECL_OBJC_CLASS_ID,
48
46
49
47
// / The Objective-C 'Protocol' type.
50
- PREDEF_DECL_OBJC_PROTOCOL_ID = 5 ,
48
+ PREDEF_DECL_OBJC_PROTOCOL_ID,
51
49
52
50
// / The signed 128-bit integer type.
53
- PREDEF_DECL_INT_128_ID = 6 ,
51
+ PREDEF_DECL_INT_128_ID,
54
52
55
53
// / The unsigned 128-bit integer type.
56
- PREDEF_DECL_UNSIGNED_INT_128_ID = 7 ,
54
+ PREDEF_DECL_UNSIGNED_INT_128_ID,
57
55
58
56
// / The internal 'instancetype' typedef.
59
- PREDEF_DECL_OBJC_INSTANCETYPE_ID = 8 ,
57
+ PREDEF_DECL_OBJC_INSTANCETYPE_ID,
60
58
61
59
// / The internal '__builtin_va_list' typedef.
62
- PREDEF_DECL_BUILTIN_VA_LIST_ID = 9 ,
60
+ PREDEF_DECL_BUILTIN_VA_LIST_ID,
63
61
64
62
// / The internal '__va_list_tag' struct, if any.
65
- PREDEF_DECL_VA_LIST_TAG = 10 ,
63
+ PREDEF_DECL_VA_LIST_TAG,
66
64
67
65
// / The internal '__builtin_ms_va_list' typedef.
68
- PREDEF_DECL_BUILTIN_MS_VA_LIST_ID = 11 ,
66
+ PREDEF_DECL_BUILTIN_MS_VA_LIST_ID,
69
67
70
68
// / The predeclared '_GUID' struct.
71
- PREDEF_DECL_BUILTIN_MS_GUID_ID = 12 ,
69
+ PREDEF_DECL_BUILTIN_MS_GUID_ID,
72
70
73
71
// / The extern "C" context.
74
- PREDEF_DECL_EXTERN_C_CONTEXT_ID = 13 ,
72
+ PREDEF_DECL_EXTERN_C_CONTEXT_ID,
75
73
76
74
// / The internal '__make_integer_seq' template.
77
- PREDEF_DECL_MAKE_INTEGER_SEQ_ID = 14 ,
75
+ PREDEF_DECL_MAKE_INTEGER_SEQ_ID,
78
76
79
77
// / The internal '__NSConstantString' typedef.
80
- PREDEF_DECL_CF_CONSTANT_STRING_ID = 15 ,
78
+ PREDEF_DECL_CF_CONSTANT_STRING_ID,
81
79
82
80
// / The internal '__NSConstantString' tag type.
83
- PREDEF_DECL_CF_CONSTANT_STRING_TAG_ID = 16 ,
81
+ PREDEF_DECL_CF_CONSTANT_STRING_TAG_ID,
84
82
85
83
// / The internal '__type_pack_element' template.
86
- PREDEF_DECL_TYPE_PACK_ELEMENT_ID = 17 ,
87
- };
84
+ PREDEF_DECL_TYPE_PACK_ELEMENT_ID,
88
85
89
- // / The number of declaration IDs that are predefined.
90
- // /
91
- // / For more information about predefined declarations, see the
92
- // / \c PredefinedDeclIDs type and the PREDEF_DECL_*_ID constants.
93
- const unsigned int NUM_PREDEF_DECL_IDS = 18 ;
86
+ // / The number of declaration IDs that are predefined.
87
+ NUM_PREDEF_DECL_IDS
88
+ };
94
89
95
90
// / GlobalDeclID means DeclID in the current ASTContext and LocalDeclID means
96
91
// / DeclID specific to a certain ModuleFile. Specially, in ASTWriter, the
0 commit comments