Skip to content

Commit c0ed1b2

Browse files
committed
[clang][NFC] Annotate Basic/Visibility.h with preferred_type
This helps debuggers to display values in bit-fields in a more helpful way.
1 parent d912433 commit c0ed1b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/include/clang/Basic/Visibility.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ inline Visibility minVisibility(Visibility L, Visibility R) {
5151
}
5252

5353
class LinkageInfo {
54+
LLVM_PREFERRED_TYPE(Linkage)
5455
uint8_t linkage_ : 3;
56+
LLVM_PREFERRED_TYPE(Visibility)
5557
uint8_t visibility_ : 2;
58+
LLVM_PREFERRED_TYPE(bool)
5659
uint8_t explicit_ : 1;
5760

5861
void setVisibility(Visibility V, bool E) { visibility_ = V; explicit_ = E; }

0 commit comments

Comments
 (0)