Skip to content

Commit 17db462

Browse files
committed
[clang][NFC] Annotate TemplateBase.h with preferred_type
1 parent d859403 commit 17db462

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

clang/include/clang/AST/TemplateBase.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,23 @@ class TemplateArgument {
103103
/// The kind of template argument we're storing.
104104

105105
struct DA {
106+
LLVM_PREFERRED_TYPE(ArgKind)
106107
unsigned Kind : 31;
108+
LLVM_PREFERRED_TYPE(bool)
107109
unsigned IsDefaulted : 1;
108110
void *QT;
109111
ValueDecl *D;
110112
};
111113
struct I {
114+
LLVM_PREFERRED_TYPE(ArgKind)
112115
unsigned Kind : 31;
116+
LLVM_PREFERRED_TYPE(bool)
113117
unsigned IsDefaulted : 1;
114118
// We store a decomposed APSInt with the data allocated by ASTContext if
115119
// BitWidth > 64. The memory may be shared between multiple
116120
// TemplateArgument instances.
117121
unsigned BitWidth : 31;
122+
LLVM_PREFERRED_TYPE(bool)
118123
unsigned IsUnsigned : 1;
119124
union {
120125
/// Used to store the <= 64 bits integer value.
@@ -126,19 +131,25 @@ class TemplateArgument {
126131
void *Type;
127132
};
128133
struct A {
134+
LLVM_PREFERRED_TYPE(ArgKind)
129135
unsigned Kind : 31;
136+
LLVM_PREFERRED_TYPE(bool)
130137
unsigned IsDefaulted : 1;
131138
unsigned NumArgs;
132139
const TemplateArgument *Args;
133140
};
134141
struct TA {
142+
LLVM_PREFERRED_TYPE(ArgKind)
135143
unsigned Kind : 31;
144+
LLVM_PREFERRED_TYPE(bool)
136145
unsigned IsDefaulted : 1;
137146
unsigned NumExpansions;
138147
void *Name;
139148
};
140149
struct TV {
150+
LLVM_PREFERRED_TYPE(ArgKind)
141151
unsigned Kind : 31;
152+
LLVM_PREFERRED_TYPE(bool)
142153
unsigned IsDefaulted : 1;
143154
uintptr_t V;
144155
};

0 commit comments

Comments
 (0)