Skip to content

Commit 24faf3b

Browse files
committed
[clang][NFC] Annotate Attr.h with preferred_type
1 parent 1881832 commit 24faf3b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

clang/include/clang/AST/Attr.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,23 @@ class OMPTraitInfo;
4040
/// Attr - This represents one attribute.
4141
class Attr : public AttributeCommonInfo {
4242
private:
43+
LLVM_PREFERRED_TYPE(attr::Kind)
4344
unsigned AttrKind : 16;
4445

4546
protected:
4647
/// An index into the spelling list of an
4748
/// attribute defined in Attr.td file.
49+
LLVM_PREFERRED_TYPE(bool)
4850
unsigned Inherited : 1;
51+
LLVM_PREFERRED_TYPE(bool)
4952
unsigned IsPackExpansion : 1;
53+
LLVM_PREFERRED_TYPE(bool)
5054
unsigned Implicit : 1;
5155
// FIXME: These are properties of the attribute kind, not state for this
5256
// instance of the attribute.
57+
LLVM_PREFERRED_TYPE(bool)
5358
unsigned IsLateParsed : 1;
59+
LLVM_PREFERRED_TYPE(bool)
5460
unsigned InheritEvenIfAlreadyPresent : 1;
5561

5662
void *operator new(size_t bytes) noexcept {
@@ -243,7 +249,9 @@ class ParameterABIAttr : public InheritableParamAttr {
243249
class ParamIdx {
244250
// Idx is exposed only via accessors that specify specific encodings.
245251
unsigned Idx : 30;
252+
LLVM_PREFERRED_TYPE(bool)
246253
unsigned HasThis : 1;
254+
LLVM_PREFERRED_TYPE(bool)
247255
unsigned IsValid : 1;
248256

249257
void assertComparable(const ParamIdx &I) const {

0 commit comments

Comments
 (0)