[clang] c4b2d33 - [clang][NFC] Annotate 2 leftover bit-fields in `Type.h` with `preferred_type`
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 3 22:59:15 PDT 2023
Author: Vlad Serebrennikov
Date: 2023-11-04T08:58:57+03:00
New Revision: c4b2d338cc450ff4499fd062cd9261bea55808a1
URL: https://github.com/llvm/llvm-project/commit/c4b2d338cc450ff4499fd062cd9261bea55808a1
DIFF: https://github.com/llvm/llvm-project/commit/c4b2d338cc450ff4499fd062cd9261bea55808a1.diff
LOG: [clang][NFC] Annotate 2 leftover bit-fields in `Type.h` with `preferred_type`
Added:
Modified:
clang/include/clang/AST/Type.h
Removed:
################################################################################
diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h
index 42e9b8f94b4e7b6..ca94d30da217f62 100644
--- a/clang/include/clang/AST/Type.h
+++ b/clang/include/clang/AST/Type.h
@@ -1672,7 +1672,7 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
/// Storage class qualifiers from declarations like
/// 'int X[static restrict 4]'. For function parameters only.
- /// Actually an ArraySizeModifier.
+ LLVM_PREFERRED_TYPE(ArraySizeModifier)
unsigned SizeModifier : 3;
};
enum { NumArrayTypeBits = NumTypeBits + 6 };
@@ -6663,6 +6663,7 @@ class PipeType : public Type, public llvm::FoldingSetNode {
/// A fixed int type of a specified bitwidth.
class BitIntType final : public Type, public llvm::FoldingSetNode {
friend class ASTContext;
+ LLVM_PREFERRED_TYPE(bool)
unsigned IsUnsigned : 1;
unsigned NumBits : 24;
More information about the cfe-commits
mailing list