@@ -1611,29 +1611,24 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
1611
1611
template <class T > friend class TypePropertyCache ;
1612
1612
1613
1613
// / 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 ;
1616
1615
1617
1616
// / 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>;
1620
1619
1621
1620
// / True if the cache (i.e. the bitfields here starting with
1622
1621
// / 'Cache') is valid.
1623
- [[clang::preferred_type(bool )]]
1624
- mutable unsigned CacheValid : 1 ;
1622
+ [[clang::preferred_type(bool )]] mutable unsigned CacheValid : 1 ;
1625
1623
1626
1624
// / Linkage of this type.
1627
- [[clang::preferred_type(Linkage)]]
1628
- mutable unsigned CachedLinkage : 3 ;
1625
+ [[clang::preferred_type(Linkage)]] mutable unsigned CachedLinkage : 3 ;
1629
1626
1630
1627
// / 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 ;
1633
1629
1634
1630
// / 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 ;
1637
1632
1638
1633
bool isCacheValid () const {
1639
1634
return CacheValid;
@@ -1658,13 +1653,11 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
1658
1653
class ArrayTypeBitfields {
1659
1654
friend class ArrayType ;
1660
1655
1661
- [[clang::preferred_type(TypeBitfields)]]
1662
- unsigned : NumTypeBits;
1656
+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
1663
1657
1664
1658
// / CVR qualifiers from declarations like
1665
1659
// / '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 ;
1668
1661
1669
1662
// / Storage class qualifiers from declarations like
1670
1663
// / 'int X[static restrict 4]'. For function parameters only.
@@ -1679,15 +1672,13 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
1679
1672
unsigned : NumArrayTypeBits;
1680
1673
1681
1674
// / Whether we have a stored size expression.
1682
- [[clang::preferred_type(bool )]]
1683
- unsigned HasStoredSizeExpr : 1 ;
1675
+ [[clang::preferred_type(bool )]] unsigned HasStoredSizeExpr : 1 ;
1684
1676
};
1685
1677
1686
1678
class BuiltinTypeBitfields {
1687
1679
friend class BuiltinType ;
1688
1680
1689
- [[clang::preferred_type(TypeBitfields)]]
1690
- unsigned : NumTypeBits;
1681
+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
1691
1682
1692
1683
// / The kind (BuiltinType::Kind) of builtin type this is.
1693
1684
static constexpr unsigned NumOfBuiltinTypeBits = 9 ;
@@ -1701,31 +1692,27 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
1701
1692
friend class FunctionProtoType ;
1702
1693
friend class FunctionType ;
1703
1694
1704
- [[clang::preferred_type(TypeBitfields)]]
1705
- unsigned : NumTypeBits;
1695
+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
1706
1696
1707
1697
// / Extra information which affects how the function is called, like
1708
1698
// / regparm and the calling convention.
1709
- [[clang::preferred_type(CallingConv)]]
1710
- unsigned ExtInfo : 13 ;
1699
+ [[clang::preferred_type(CallingConv)]] unsigned ExtInfo : 13 ;
1711
1700
1712
1701
// / The ref-qualifier associated with a \c FunctionProtoType.
1713
1702
// /
1714
1703
// / 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 ;
1717
1705
1718
1706
// / Used only by FunctionProtoType, put here to pack with the
1719
1707
// / other bitfields.
1720
1708
// / The qualifiers are part of FunctionProtoType because...
1721
1709
// /
1722
1710
// / C++ 8.3.5p4: The return type, the parameter type list and the
1723
1711
// / 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;
1726
1714
// / Whether this function has extended Qualifiers.
1727
- [[clang::preferred_type(bool )]]
1728
- unsigned HasExtQuals : 1 ;
1715
+ [[clang::preferred_type(bool )]] unsigned HasExtQuals : 1 ;
1729
1716
1730
1717
// / The number of parameters this function has, not counting '...'.
1731
1718
// / According to [implimits] 8 bits should be enough here but this is
@@ -1734,31 +1721,26 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
1734
1721
unsigned NumParams : 16 ;
1735
1722
1736
1723
// / 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 ;
1739
1726
1740
1727
// / Whether this function has extended parameter information.
1741
- [[clang::preferred_type(bool )]]
1742
- unsigned HasExtParameterInfos : 1 ;
1728
+ [[clang::preferred_type(bool )]] unsigned HasExtParameterInfos : 1 ;
1743
1729
1744
1730
// / 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 ;
1747
1732
1748
1733
// / Whether the function is variadic.
1749
- [[clang::preferred_type(bool )]]
1750
- unsigned Variadic : 1 ;
1734
+ [[clang::preferred_type(bool )]] unsigned Variadic : 1 ;
1751
1735
1752
1736
// / 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 ;
1755
1738
};
1756
1739
1757
1740
class ObjCObjectTypeBitfields {
1758
1741
friend class ObjCObjectType ;
1759
1742
1760
- [[clang::preferred_type(TypeBitfields)]]
1761
- unsigned : NumTypeBits;
1743
+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
1762
1744
1763
1745
// / The number of type arguments stored directly on this object type.
1764
1746
unsigned NumTypeArgs : 7 ;
@@ -1767,15 +1749,13 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
1767
1749
unsigned NumProtocols : 6 ;
1768
1750
1769
1751
// / Whether this is a "kindof" type.
1770
- [[clang::preferred_type(bool )]]
1771
- unsigned IsKindOf : 1 ;
1752
+ [[clang::preferred_type(bool )]] unsigned IsKindOf : 1 ;
1772
1753
};
1773
1754
1774
1755
class ReferenceTypeBitfields {
1775
1756
friend class ReferenceType ;
1776
1757
1777
- [[clang::preferred_type(TypeBitfields)]]
1778
- unsigned : NumTypeBits;
1758
+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
1779
1759
1780
1760
// / True if the type was originally spelled with an lvalue sigil.
1781
1761
// / This is never true of rvalue references but can also be false
@@ -1788,20 +1768,17 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
1788
1768
// / ref &&a; // lvalue, inner ref
1789
1769
// / rvref &a; // lvalue, inner ref, spelled lvalue
1790
1770
// / rvref &&a; // rvalue, inner ref
1791
- [[clang::preferred_type(bool )]]
1792
- unsigned SpelledAsLValue : 1 ;
1771
+ [[clang::preferred_type(bool )]] unsigned SpelledAsLValue : 1 ;
1793
1772
1794
1773
// / True if the inner type is a reference type. This only happens
1795
1774
// / in non-canonical forms.
1796
- [[clang::preferred_type(bool )]]
1797
- unsigned InnerRef : 1 ;
1775
+ [[clang::preferred_type(bool )]] unsigned InnerRef : 1 ;
1798
1776
};
1799
1777
1800
1778
class TypeWithKeywordBitfields {
1801
1779
friend class TypeWithKeyword ;
1802
1780
1803
- [[clang::preferred_type(TypeBitfields)]]
1804
- unsigned : NumTypeBits;
1781
+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
1805
1782
1806
1783
// / An ElaboratedTypeKeyword. 8 bits for efficient access.
1807
1784
unsigned Keyword : 8 ;
@@ -1812,20 +1789,18 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
1812
1789
class ElaboratedTypeBitfields {
1813
1790
friend class ElaboratedType ;
1814
1791
1815
- [[clang::preferred_type(TypeWithKeywordBitfields)]]
1816
- unsigned : NumTypeWithKeywordBits;
1792
+ [[clang::preferred_type(TypeWithKeywordBitfields)]] unsigned
1793
+ : NumTypeWithKeywordBits;
1817
1794
1818
1795
// / Whether the ElaboratedType has a trailing OwnedTagDecl.
1819
- [[clang::preferred_type(bool )]]
1820
- unsigned HasOwnedTagDecl : 1 ;
1796
+ [[clang::preferred_type(bool )]] unsigned HasOwnedTagDecl : 1 ;
1821
1797
};
1822
1798
1823
1799
class VectorTypeBitfields {
1824
1800
friend class VectorType ;
1825
1801
friend class DependentVectorType ;
1826
1802
1827
- [[clang::preferred_type(TypeBitfields)]]
1828
- unsigned : NumTypeBits;
1803
+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
1829
1804
1830
1805
// / The kind of vector, either a generic vector type or some
1831
1806
// / target-specific vector type such as for AltiVec or Neon.
@@ -1837,8 +1812,7 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
1837
1812
class AttributedTypeBitfields {
1838
1813
friend class AttributedType ;
1839
1814
1840
- [[clang::preferred_type(TypeBitfields)]]
1841
- unsigned : NumTypeBits;
1815
+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
1842
1816
1843
1817
// / An AttributedType::Kind
1844
1818
unsigned AttrKind : 32 - NumTypeBits;
@@ -1847,13 +1821,11 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
1847
1821
class AutoTypeBitfields {
1848
1822
friend class AutoType ;
1849
1823
1850
- [[clang::preferred_type(TypeBitfields)]]
1851
- unsigned : NumTypeBits;
1824
+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
1852
1825
1853
1826
// / Was this placeholder type spelled as 'auto', 'decltype(auto)',
1854
1827
// / or '__auto_type'? AutoTypeKeyword value.
1855
- [[clang::preferred_type(AutoTypeKeyword)]]
1856
- unsigned Keyword : 2 ;
1828
+ [[clang::preferred_type(AutoTypeKeyword)]] unsigned Keyword : 2 ;
1857
1829
1858
1830
// / The number of template arguments in the type-constraints, which is
1859
1831
// / expected to be able to hold at least 1024 according to [implimits].
@@ -1869,10 +1841,9 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
1869
1841
friend class TypeOfType ;
1870
1842
friend class TypeOfExprType ;
1871
1843
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
1876
1847
};
1877
1848
1878
1849
class UsingBitfields {
@@ -1881,29 +1852,24 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
1881
1852
[[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
1882
1853
1883
1854
// / 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 ;
1886
1856
};
1887
1857
1888
1858
class TypedefBitfields {
1889
1859
friend class TypedefType ;
1890
1860
1891
- [[clang::preferred_type(TypeBitfields)]]
1892
- unsigned : NumTypeBits;
1861
+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
1893
1862
1894
1863
// / 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 ;
1897
1865
};
1898
1866
1899
1867
class SubstTemplateTypeParmTypeBitfields {
1900
1868
friend class SubstTemplateTypeParmType ;
1901
1869
1902
- [[clang::preferred_type(TypeBitfields)]]
1903
- unsigned : NumTypeBits;
1870
+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
1904
1871
1905
- [[clang::preferred_type(bool )]]
1906
- unsigned HasNonCanonicalUnderlyingType : 1 ;
1872
+ [[clang::preferred_type(bool )]] unsigned HasNonCanonicalUnderlyingType : 1 ;
1907
1873
1908
1874
// The index of the template parameter this substitution represents.
1909
1875
unsigned Index : 15 ;
@@ -1919,8 +1885,7 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
1919
1885
class SubstTemplateTypeParmPackTypeBitfields {
1920
1886
friend class SubstTemplateTypeParmPackType ;
1921
1887
1922
- [[clang::preferred_type(TypeBitfields)]]
1923
- unsigned : NumTypeBits;
1888
+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
1924
1889
1925
1890
// The index of the template parameter this substitution represents.
1926
1891
unsigned Index : 16 ;
@@ -1935,12 +1900,10 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
1935
1900
class TemplateSpecializationTypeBitfields {
1936
1901
friend class TemplateSpecializationType ;
1937
1902
1938
- [[clang::preferred_type(TypeBitfields)]]
1939
- unsigned : NumTypeBits;
1903
+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
1940
1904
1941
1905
// / 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 ;
1944
1907
1945
1908
// / The number of template arguments named in this class template
1946
1909
// / specialization, which is expected to be able to hold at least 1024
@@ -1970,8 +1933,7 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
1970
1933
class PackExpansionTypeBitfields {
1971
1934
friend class PackExpansionType ;
1972
1935
1973
- [[clang::preferred_type(TypeBitfields)]]
1974
- unsigned : NumTypeBits;
1936
+ [[clang::preferred_type(TypeBitfields)]] unsigned : NumTypeBits;
1975
1937
1976
1938
// / The number of expansions that this pack expansion will
1977
1939
// / generate when substituted (+1), which is expected to be able to
0 commit comments