[clang] 6884657 - [clang][NFC] Annotate `SemaChecking.cpp` with `preferred_type`

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 11 04:06:25 PST 2024


Author: Vlad Serebrennikov
Date: 2024-02-11T15:06:15+03:00
New Revision: 6884657de8da3024b50d8737219c1f24ab075c4c

URL: https://github.com/llvm/llvm-project/commit/6884657de8da3024b50d8737219c1f24ab075c4c
DIFF: https://github.com/llvm/llvm-project/commit/6884657de8da3024b50d8737219c1f24ab075c4c.diff

LOG: [clang][NFC] Annotate `SemaChecking.cpp` with `preferred_type`

This helps debuggers to display values in bit-fields in a more helpful way.

Added: 
    

Modified: 
    clang/lib/Sema/SemaChecking.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index f8b73c7923baba..71e6e7230fc455 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -16652,6 +16652,7 @@ class SequenceChecker : public ConstEvaluatedExprVisitor<SequenceChecker> {
     struct Value {
       explicit Value(unsigned Parent) : Parent(Parent), Merged(false) {}
       unsigned Parent : 31;
+      LLVM_PREFERRED_TYPE(bool)
       unsigned Merged : 1;
     };
     SmallVector<Value, 8> Values;


        


More information about the cfe-commits mailing list