[clang] 6a7cf80 - [clang][NFC] Annotate `Sema/ParsedAttr.h` with `preferred_type`
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 10 13:21:52 PST 2024
Author: Vlad Serebrennikov
Date: 2024-02-11T00:21:37+03:00
New Revision: 6a7cf806a66c67df01818fda01116a2dd2d90b0d
URL: https://github.com/llvm/llvm-project/commit/6a7cf806a66c67df01818fda01116a2dd2d90b0d
DIFF: https://github.com/llvm/llvm-project/commit/6a7cf806a66c67df01818fda01116a2dd2d90b0d.diff
LOG: [clang][NFC] Annotate `Sema/ParsedAttr.h` with `preferred_type`
This helps debuggers to display values in bit-fields in a more helpful way.
Added:
Modified:
clang/include/clang/Sema/ParsedAttr.h
Removed:
################################################################################
diff --git a/clang/include/clang/Sema/ParsedAttr.h b/clang/include/clang/Sema/ParsedAttr.h
index 8c0edca1ebc5ee..8c3ba39031aad8 100644
--- a/clang/include/clang/Sema/ParsedAttr.h
+++ b/clang/include/clang/Sema/ParsedAttr.h
@@ -82,7 +82,9 @@ struct AvailabilityData {
struct TypeTagForDatatypeData {
ParsedType MatchingCType;
+ LLVM_PREFERRED_TYPE(bool)
unsigned LayoutCompatible : 1;
+ LLVM_PREFERRED_TYPE(bool)
unsigned MustBeNull : 1;
};
struct PropertyData {
@@ -149,33 +151,41 @@ class ParsedAttr final
unsigned NumArgs : 16;
/// True if already diagnosed as invalid.
+ LLVM_PREFERRED_TYPE(bool)
mutable unsigned Invalid : 1;
/// True if this attribute was used as a type attribute.
+ LLVM_PREFERRED_TYPE(bool)
mutable unsigned UsedAsTypeAttr : 1;
/// True if this has the extra information associated with an
/// availability attribute.
+ LLVM_PREFERRED_TYPE(bool)
unsigned IsAvailability : 1;
/// True if this has extra information associated with a
/// type_tag_for_datatype attribute.
+ LLVM_PREFERRED_TYPE(bool)
unsigned IsTypeTagForDatatype : 1;
/// True if this has extra information associated with a
/// Microsoft __delcspec(property) attribute.
+ LLVM_PREFERRED_TYPE(bool)
unsigned IsProperty : 1;
/// True if this has a ParsedType
+ LLVM_PREFERRED_TYPE(bool)
unsigned HasParsedType : 1;
/// True if the processing cache is valid.
+ LLVM_PREFERRED_TYPE(bool)
mutable unsigned HasProcessingCache : 1;
/// A cached value.
mutable unsigned ProcessingCache : 8;
/// True if the attribute is specified using '#pragma clang attribute'.
+ LLVM_PREFERRED_TYPE(bool)
mutable unsigned IsPragmaClangAttribute : 1;
/// The location of the 'unavailable' keyword in an
More information about the cfe-commits
mailing list