[clang] c0ed1b2 - [clang][NFC] Annotate `Basic/Visibility.h` with `preferred_type`
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 10 23:47:56 PST 2024
Author: Vlad Serebrennikov
Date: 2024-02-11T10:47:45+03:00
New Revision: c0ed1b2c08ab3b75e79d90fcda7e949ca50400a5
URL: https://github.com/llvm/llvm-project/commit/c0ed1b2c08ab3b75e79d90fcda7e949ca50400a5
DIFF: https://github.com/llvm/llvm-project/commit/c0ed1b2c08ab3b75e79d90fcda7e949ca50400a5.diff
LOG: [clang][NFC] Annotate `Basic/Visibility.h` with `preferred_type`
This helps debuggers to display values in bit-fields in a more helpful way.
Added:
Modified:
clang/include/clang/Basic/Visibility.h
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/Visibility.h b/clang/include/clang/Basic/Visibility.h
index 1e196300be421e..b9693e613224c9 100644
--- a/clang/include/clang/Basic/Visibility.h
+++ b/clang/include/clang/Basic/Visibility.h
@@ -51,8 +51,11 @@ inline Visibility minVisibility(Visibility L, Visibility R) {
}
class LinkageInfo {
+ LLVM_PREFERRED_TYPE(Linkage)
uint8_t linkage_ : 3;
+ LLVM_PREFERRED_TYPE(Visibility)
uint8_t visibility_ : 2;
+ LLVM_PREFERRED_TYPE(bool)
uint8_t explicit_ : 1;
void setVisibility(Visibility V, bool E) { visibility_ = V; explicit_ = E; }
More information about the cfe-commits
mailing list