[clang] 3bf89e5 - [clang][NFC] Annotate `AST/Linkage.h` with `preferred_type`
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 11 00:55:17 PST 2024
Author: Vlad Serebrennikov
Date: 2024-02-11T11:55:07+03:00
New Revision: 3bf89e5883ff0ea82ca4ad5cd511b77826b7bb71
URL: https://github.com/llvm/llvm-project/commit/3bf89e5883ff0ea82ca4ad5cd511b77826b7bb71
DIFF: https://github.com/llvm/llvm-project/commit/3bf89e5883ff0ea82ca4ad5cd511b77826b7bb71.diff
LOG: [clang][NFC] Annotate `AST/Linkage.h` with `preferred_type`
This helps debuggers to display values in bit-fields in a more helpful way.
Added:
Modified:
clang/lib/AST/Linkage.h
Removed:
################################################################################
diff --git a/clang/lib/AST/Linkage.h b/clang/lib/AST/Linkage.h
index 31f384eb75d0b..e4dcb5e53261c 100644
--- a/clang/lib/AST/Linkage.h
+++ b/clang/lib/AST/Linkage.h
@@ -29,12 +29,15 @@ namespace clang {
struct LVComputationKind {
/// The kind of entity whose visibility is ultimately being computed;
/// visibility computations for types and non-types follow
diff erent rules.
+ LLVM_PREFERRED_TYPE(bool)
unsigned ExplicitKind : 1;
/// Whether explicit visibility attributes should be ignored. When set,
/// visibility may only be restricted by the visibility of template arguments.
+ LLVM_PREFERRED_TYPE(bool)
unsigned IgnoreExplicitVisibility : 1;
/// Whether all visibility should be ignored. When set, we're only interested
/// in computing linkage.
+ LLVM_PREFERRED_TYPE(bool)
unsigned IgnoreAllVisibility : 1;
enum { NumLVComputationKindBits = 3 };
More information about the cfe-commits
mailing list