[clang] d912433 - [clang][NFC] Annotate `Sema/DelayedDiagnostic.h` with `preferred_type`
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 10 23:40:18 PST 2024
Author: Vlad Serebrennikov
Date: 2024-02-11T10:40:05+03:00
New Revision: d9124332aa3b95725b149617066fdd1f525b530d
URL: https://github.com/llvm/llvm-project/commit/d9124332aa3b95725b149617066fdd1f525b530d
DIFF: https://github.com/llvm/llvm-project/commit/d9124332aa3b95725b149617066fdd1f525b530d.diff
LOG: [clang][NFC] Annotate `Sema/DelayedDiagnostic.h` with `preferred_type`
This helps debuggers to display values in bit-fields in a more helpful way.
Added:
Modified:
clang/include/clang/Sema/DelayedDiagnostic.h
Removed:
################################################################################
diff --git a/clang/include/clang/Sema/DelayedDiagnostic.h b/clang/include/clang/Sema/DelayedDiagnostic.h
index 9de7131f74c70..0105089a393f1 100644
--- a/clang/include/clang/Sema/DelayedDiagnostic.h
+++ b/clang/include/clang/Sema/DelayedDiagnostic.h
@@ -111,7 +111,9 @@ class AccessedEntity {
}
private:
+ LLVM_PREFERRED_TYPE(AccessSpecifier)
unsigned Access : 2;
+ LLVM_PREFERRED_TYPE(bool)
unsigned IsMember : 1;
NamedDecl *Target;
CXXRecordDecl *NamingClass;
More information about the cfe-commits
mailing list