@@ -1611,29 +1611,24 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
16111611 template <class T > friend class TypePropertyCache ;
16121612
16131613 // / TypeClass bitfield - Enum that specifies what subclass this belongs to.
1614- [[clang::preferred_type(TypeClass)]]
1615- unsigned TC : 8 ;
1614+ [[clang::preferred_type(TypeClass)]] unsigned TC : 8 ;
16161615
16171616 // / Store information on the type dependency.
1618- [[clang::preferred_type(TypeDependence)]]
1619- unsigned Dependence : llvm::BitWidth<TypeDependence>;
1617+ [[clang::preferred_type(TypeDependence)]] unsigned Dependence
1618+ : llvm::BitWidth<TypeDependence>;
16201619
16211620 // / True if the cache (i.e. the bitfields here starting with
16221621 // / 'Cache') is valid.
1623- [[clang::preferred_type(bool )]]
1624- mutable unsigned CacheValid : 1 ;
1622+ [[clang::preferred_type(bool )]] mutable unsigned CacheValid : 1 ;
16251623
16261624 // / Linkage of this type.
1627- [[clang::preferred_type(Linkage)]]
1628- mutable unsigned CachedLinkage : 3 ;
1625+ [[clang::preferred_type(Linkage)]] mutable unsigned CachedLinkage : 3 ;
16291626
16301627 // / Whether this type involves and local or unnamed types.
1631- [[clang::preferred_type(bool )]]
1632- mutable unsigned CachedLocalOrUnnamed : 1 ;
1628+ [[clang::preferred_type(bool )]] mutable unsigned CachedLocalOrUnnamed : 1 ;
16331629
16341630 // / Whether this type comes from an AST file.
1635- [[clang::preferred_type(bool )]]
1636- mutable unsigned FromAST : 1 ;
1631+ [[clang::preferred_type(bool )]] mutable unsigned FromAST : 1 ;
16371632
16381633 bool isCacheValid () const {
16391634 return CacheValid;
@@ -1658,13 +1653,11 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
16581653 class ArrayTypeBitfields {
16591654 friend class ArrayType ;
16601655
1661- [[clang::preferred_type(TypeBitfields)]]
1662- unsigned : NumTypeBits;
1656+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
16631657
16641658 // / CVR qualifiers from declarations like
16651659 // / 'int X[static restrict 4]'. For function parameters only.
1666- [[clang::preferred_type(Qualifiers)]]
1667- unsigned IndexTypeQuals : 3 ;
1660+ [[clang::preferred_type(Qualifiers)]] unsigned IndexTypeQuals : 3 ;
16681661
16691662 // / Storage class qualifiers from declarations like
16701663 // / 'int X[static restrict 4]'. For function parameters only.
@@ -1679,15 +1672,13 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
16791672 unsigned : NumArrayTypeBits;
16801673
16811674 // / Whether we have a stored size expression.
1682- [[clang::preferred_type(bool )]]
1683- unsigned HasStoredSizeExpr : 1 ;
1675+ [[clang::preferred_type(bool )]] unsigned HasStoredSizeExpr : 1 ;
16841676 };
16851677
16861678 class BuiltinTypeBitfields {
16871679 friend class BuiltinType ;
16881680
1689- [[clang::preferred_type(TypeBitfields)]]
1690- unsigned : NumTypeBits;
1681+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
16911682
16921683 // / The kind (BuiltinType::Kind) of builtin type this is.
16931684 static constexpr unsigned NumOfBuiltinTypeBits = 9 ;
@@ -1701,31 +1692,27 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
17011692 friend class FunctionProtoType ;
17021693 friend class FunctionType ;
17031694
1704- [[clang::preferred_type(TypeBitfields)]]
1705- unsigned : NumTypeBits;
1695+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
17061696
17071697 // / Extra information which affects how the function is called, like
17081698 // / regparm and the calling convention.
1709- [[clang::preferred_type(CallingConv)]]
1710- unsigned ExtInfo : 13 ;
1699+ [[clang::preferred_type(CallingConv)]] unsigned ExtInfo : 13 ;
17111700
17121701 // / The ref-qualifier associated with a \c FunctionProtoType.
17131702 // /
17141703 // / This is a value of type \c RefQualifierKind.
1715- [[clang::preferred_type(RefQualifierKind)]]
1716- unsigned RefQualifier : 2 ;
1704+ [[clang::preferred_type(RefQualifierKind)]] unsigned RefQualifier : 2 ;
17171705
17181706 // / Used only by FunctionProtoType, put here to pack with the
17191707 // / other bitfields.
17201708 // / The qualifiers are part of FunctionProtoType because...
17211709 // /
17221710 // / C++ 8.3.5p4: The return type, the parameter type list and the
17231711 // / cv-qualifier-seq, [...], are part of the function type.
1724- [[clang::preferred_type(Qualifiers)]]
1725- unsigned FastTypeQuals : Qualifiers::FastWidth;
1712+ [[clang::preferred_type(Qualifiers)]] unsigned FastTypeQuals
1713+ : Qualifiers::FastWidth;
17261714 // / Whether this function has extended Qualifiers.
1727- [[clang::preferred_type(bool )]]
1728- unsigned HasExtQuals : 1 ;
1715+ [[clang::preferred_type(bool )]] unsigned HasExtQuals : 1 ;
17291716
17301717 // / The number of parameters this function has, not counting '...'.
17311718 // / According to [implimits] 8 bits should be enough here but this is
@@ -1734,31 +1721,26 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
17341721 unsigned NumParams : 16 ;
17351722
17361723 // / The type of exception specification this function has.
1737- [[clang::preferred_type(ExceptionSpecificationType)]]
1738- unsigned ExceptionSpecType : 4 ;
1724+ [[clang::preferred_type(
1725+ ExceptionSpecificationType)]] unsigned ExceptionSpecType : 4 ;
17391726
17401727 // / Whether this function has extended parameter information.
1741- [[clang::preferred_type(bool )]]
1742- unsigned HasExtParameterInfos : 1 ;
1728+ [[clang::preferred_type(bool )]] unsigned HasExtParameterInfos : 1 ;
17431729
17441730 // / Whether this function has extra bitfields for the prototype.
1745- [[clang::preferred_type(bool )]]
1746- unsigned HasExtraBitfields : 1 ;
1731+ [[clang::preferred_type(bool )]] unsigned HasExtraBitfields : 1 ;
17471732
17481733 // / Whether the function is variadic.
1749- [[clang::preferred_type(bool )]]
1750- unsigned Variadic : 1 ;
1734+ [[clang::preferred_type(bool )]] unsigned Variadic : 1 ;
17511735
17521736 // / Whether this function has a trailing return type.
1753- [[clang::preferred_type(bool )]]
1754- unsigned HasTrailingReturn : 1 ;
1737+ [[clang::preferred_type(bool )]] unsigned HasTrailingReturn : 1 ;
17551738 };
17561739
17571740 class ObjCObjectTypeBitfields {
17581741 friend class ObjCObjectType ;
17591742
1760- [[clang::preferred_type(TypeBitfields)]]
1761- unsigned : NumTypeBits;
1743+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
17621744
17631745 // / The number of type arguments stored directly on this object type.
17641746 unsigned NumTypeArgs : 7 ;
@@ -1767,15 +1749,13 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
17671749 unsigned NumProtocols : 6 ;
17681750
17691751 // / Whether this is a "kindof" type.
1770- [[clang::preferred_type(bool )]]
1771- unsigned IsKindOf : 1 ;
1752+ [[clang::preferred_type(bool )]] unsigned IsKindOf : 1 ;
17721753 };
17731754
17741755 class ReferenceTypeBitfields {
17751756 friend class ReferenceType ;
17761757
1777- [[clang::preferred_type(TypeBitfields)]]
1778- unsigned : NumTypeBits;
1758+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
17791759
17801760 // / True if the type was originally spelled with an lvalue sigil.
17811761 // / This is never true of rvalue references but can also be false
@@ -1788,20 +1768,17 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
17881768 // / ref &&a; // lvalue, inner ref
17891769 // / rvref &a; // lvalue, inner ref, spelled lvalue
17901770 // / rvref &&a; // rvalue, inner ref
1791- [[clang::preferred_type(bool )]]
1792- unsigned SpelledAsLValue : 1 ;
1771+ [[clang::preferred_type(bool )]] unsigned SpelledAsLValue : 1 ;
17931772
17941773 // / True if the inner type is a reference type. This only happens
17951774 // / in non-canonical forms.
1796- [[clang::preferred_type(bool )]]
1797- unsigned InnerRef : 1 ;
1775+ [[clang::preferred_type(bool )]] unsigned InnerRef : 1 ;
17981776 };
17991777
18001778 class TypeWithKeywordBitfields {
18011779 friend class TypeWithKeyword ;
18021780
1803- [[clang::preferred_type(TypeBitfields)]]
1804- unsigned : NumTypeBits;
1781+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
18051782
18061783 // / An ElaboratedTypeKeyword. 8 bits for efficient access.
18071784 unsigned Keyword : 8 ;
@@ -1812,20 +1789,18 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
18121789 class ElaboratedTypeBitfields {
18131790 friend class ElaboratedType ;
18141791
1815- [[clang::preferred_type(TypeWithKeywordBitfields)]]
1816- unsigned : NumTypeWithKeywordBits;
1792+ [[clang::preferred_type(TypeWithKeywordBitfields)]] unsigned
1793+ : NumTypeWithKeywordBits;
18171794
18181795 // / Whether the ElaboratedType has a trailing OwnedTagDecl.
1819- [[clang::preferred_type(bool )]]
1820- unsigned HasOwnedTagDecl : 1 ;
1796+ [[clang::preferred_type(bool )]] unsigned HasOwnedTagDecl : 1 ;
18211797 };
18221798
18231799 class VectorTypeBitfields {
18241800 friend class VectorType ;
18251801 friend class DependentVectorType ;
18261802
1827- [[clang::preferred_type(TypeBitfields)]]
1828- unsigned : NumTypeBits;
1803+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
18291804
18301805 // / The kind of vector, either a generic vector type or some
18311806 // / target-specific vector type such as for AltiVec or Neon.
@@ -1837,8 +1812,7 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
18371812 class AttributedTypeBitfields {
18381813 friend class AttributedType ;
18391814
1840- [[clang::preferred_type(TypeBitfields)]]
1841- unsigned : NumTypeBits;
1815+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
18421816
18431817 // / An AttributedType::Kind
18441818 unsigned AttrKind : 32 - NumTypeBits;
@@ -1847,13 +1821,11 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
18471821 class AutoTypeBitfields {
18481822 friend class AutoType ;
18491823
1850- [[clang::preferred_type(TypeBitfields)]]
1851- unsigned : NumTypeBits;
1824+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
18521825
18531826 // / Was this placeholder type spelled as 'auto', 'decltype(auto)',
18541827 // / or '__auto_type'? AutoTypeKeyword value.
1855- [[clang::preferred_type(AutoTypeKeyword)]]
1856- unsigned Keyword : 2 ;
1828+ [[clang::preferred_type(AutoTypeKeyword)]] unsigned Keyword : 2 ;
18571829
18581830 // / The number of template arguments in the type-constraints, which is
18591831 // / expected to be able to hold at least 1024 according to [implimits].
@@ -1869,10 +1841,9 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
18691841 friend class TypeOfType ;
18701842 friend class TypeOfExprType ;
18711843
1872- [[clang::preferred_type(TypeBitfields)]]
1873- unsigned : NumTypeBits;
1874- [[clang::preferred_type(bool )]]
1875- unsigned IsUnqual : 1 ; // If true: typeof_unqual, else: typeof
1844+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
1845+ [[clang::preferred_type(
1846+ bool )]] unsigned IsUnqual : 1 ; // If true: typeof_unqual, else: typeof
18761847 };
18771848
18781849 class UsingBitfields {
@@ -1881,29 +1852,24 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
18811852 [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
18821853
18831854 // / True if the underlying type is different from the declared one.
1884- [[clang::preferred_type(bool )]]
1885- unsigned hasTypeDifferentFromDecl : 1 ;
1855+ [[clang::preferred_type(bool )]] unsigned hasTypeDifferentFromDecl : 1 ;
18861856 };
18871857
18881858 class TypedefBitfields {
18891859 friend class TypedefType ;
18901860
1891- [[clang::preferred_type(TypeBitfields)]]
1892- unsigned : NumTypeBits;
1861+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
18931862
18941863 // / True if the underlying type is different from the declared one.
1895- [[clang::preferred_type(bool )]]
1896- unsigned hasTypeDifferentFromDecl : 1 ;
1864+ [[clang::preferred_type(bool )]] unsigned hasTypeDifferentFromDecl : 1 ;
18971865 };
18981866
18991867 class SubstTemplateTypeParmTypeBitfields {
19001868 friend class SubstTemplateTypeParmType ;
19011869
1902- [[clang::preferred_type(TypeBitfields)]]
1903- unsigned : NumTypeBits;
1870+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
19041871
1905- [[clang::preferred_type(bool )]]
1906- unsigned HasNonCanonicalUnderlyingType : 1 ;
1872+ [[clang::preferred_type(bool )]] unsigned HasNonCanonicalUnderlyingType : 1 ;
19071873
19081874 // The index of the template parameter this substitution represents.
19091875 unsigned Index : 15 ;
@@ -1919,8 +1885,7 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
19191885 class SubstTemplateTypeParmPackTypeBitfields {
19201886 friend class SubstTemplateTypeParmPackType ;
19211887
1922- [[clang::preferred_type(TypeBitfields)]]
1923- unsigned : NumTypeBits;
1888+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
19241889
19251890 // The index of the template parameter this substitution represents.
19261891 unsigned Index : 16 ;
@@ -1935,12 +1900,10 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
19351900 class TemplateSpecializationTypeBitfields {
19361901 friend class TemplateSpecializationType ;
19371902
1938- [[clang::preferred_type(TypeBitfields)]]
1939- unsigned : NumTypeBits;
1903+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
19401904
19411905 // / Whether this template specialization type is a substituted type alias.
1942- [[clang::preferred_type(bool )]]
1943- unsigned TypeAlias : 1 ;
1906+ [[clang::preferred_type(bool )]] unsigned TypeAlias : 1 ;
19441907
19451908 // / The number of template arguments named in this class template
19461909 // / specialization, which is expected to be able to hold at least 1024
@@ -1970,8 +1933,7 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
19701933 class PackExpansionTypeBitfields {
19711934 friend class PackExpansionType ;
19721935
1973- [[clang::preferred_type(TypeBitfields)]]
1974- unsigned : NumTypeBits;
1936+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
19751937
19761938 // / The number of expansions that this pack expansion will
19771939 // / generate when substituted (+1), which is expected to be able to
0 commit comments