File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ const uint32_t StaticDiagInfoDescriptionOffsets[] = {
100
100
};
101
101
102
102
// Diagnostic classes.
103
- enum {
103
+ enum DiagnosticClass {
104
104
CLASS_NOTE = 0x01 ,
105
105
CLASS_REMARK = 0x02 ,
106
106
CLASS_WARNING = 0x03 ,
@@ -110,15 +110,22 @@ enum {
110
110
111
111
struct StaticDiagInfoRec {
112
112
uint16_t DiagID;
113
+ LLVM_PREFERRED_TYPE (diag::Severity)
113
114
uint8_t DefaultSeverity : 3 ;
115
+ LLVM_PREFERRED_TYPE (DiagnosticClass)
114
116
uint8_t Class : 3 ;
117
+ LLVM_PREFERRED_TYPE (DiagnosticIDs::SFINAEResponse)
115
118
uint8_t SFINAE : 2 ;
116
119
uint8_t Category : 6 ;
120
+ LLVM_PREFERRED_TYPE (bool )
117
121
uint8_t WarnNoWerror : 1 ;
122
+ LLVM_PREFERRED_TYPE (bool )
118
123
uint8_t WarnShowInSystemHeader : 1 ;
124
+ LLVM_PREFERRED_TYPE (bool )
119
125
uint8_t WarnShowInSystemMacro : 1 ;
120
126
121
127
uint16_t OptionGroupIndex : 15 ;
128
+ LLVM_PREFERRED_TYPE (bool )
122
129
uint16_t Deferrable : 1 ;
123
130
124
131
uint16_t DescriptionLen;
You can’t perform that action at this time.
0 commit comments