@@ -201,21 +201,21 @@ class Decl {
201
201
SourceLocation Loc;
202
202
203
203
// / DeclKind - This indicates which class this is.
204
- Kind DeclKind : 8 ;
204
+ unsigned DeclKind : 8 ;
205
205
206
206
// / InvalidDecl - This indicates a semantic error occurred.
207
- unsigned int InvalidDecl : 1 ;
207
+ unsigned InvalidDecl : 1 ;
208
208
209
209
// / HasAttrs - This indicates whether the decl has attributes or not.
210
- unsigned int HasAttrs : 1 ;
210
+ unsigned HasAttrs : 1 ;
211
211
212
212
// / Implicit - Whether this declaration was implicitly generated by
213
213
// / the implementation rather than explicitly written by the user.
214
- bool Implicit : 1 ;
214
+ unsigned Implicit : 1 ;
215
215
216
216
// / \brief Whether this declaration was "used", meaning that a definition is
217
217
// / required.
218
- bool Used : 1 ;
218
+ unsigned Used : 1 ;
219
219
220
220
protected:
221
221
// / Access - Used by C++ decls for the access specifier.
@@ -227,7 +227,7 @@ class Decl {
227
227
unsigned PCHLevel : 2 ;
228
228
229
229
// / ChangedAfterLoad - if this declaration has changed since being loaded
230
- bool ChangedAfterLoad : 1 ;
230
+ unsigned ChangedAfterLoad : 1 ;
231
231
232
232
// / IdentifierNamespace - This specifies what IDNS_* namespace this lives in.
233
233
unsigned IdentifierNamespace : 15 ;
@@ -272,7 +272,7 @@ class Decl {
272
272
SourceLocation getLocation () const { return Loc; }
273
273
void setLocation (SourceLocation L) { Loc = L; }
274
274
275
- Kind getKind () const { return DeclKind; }
275
+ Kind getKind () const { return static_cast <Kind>( DeclKind) ; }
276
276
const char *getDeclKindName () const ;
277
277
278
278
Decl *getNextDeclInContext () { return NextDeclInContext; }
@@ -681,17 +681,17 @@ class DeclContextLookupConstResult
681
681
// /
682
682
class DeclContext {
683
683
// / DeclKind - This indicates which class this is.
684
- Decl::Kind DeclKind : 8 ;
684
+ unsigned DeclKind : 8 ;
685
685
686
686
// / \brief Whether this declaration context also has some external
687
687
// / storage that contains additional declarations that are lexically
688
688
// / part of this context.
689
- mutable bool ExternalLexicalStorage : 1 ;
689
+ mutable unsigned ExternalLexicalStorage : 1 ;
690
690
691
691
// / \brief Whether this declaration context also has some external
692
692
// / storage that contains additional declarations that are visible
693
693
// / in this context.
694
- mutable bool ExternalVisibleStorage : 1 ;
694
+ mutable unsigned ExternalVisibleStorage : 1 ;
695
695
696
696
// / \brief Pointer to the data structure used to lookup declarations
697
697
// / within this context (or a DependentStoredDeclsMap if this is a
@@ -726,7 +726,7 @@ class DeclContext {
726
726
~DeclContext ();
727
727
728
728
Decl::Kind getDeclKind () const {
729
- return DeclKind;
729
+ return static_cast <Decl::Kind>( DeclKind) ;
730
730
}
731
731
const char *getDeclKindName () const ;
732
732
0 commit comments