[clang] 421d6cc - [clang][NFC] Annotate `CXXInheritance.h` with `preferred_type`

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 5 23:00:49 PST 2023


Author: Vlad Serebrennikov
Date: 2023-11-06T10:00:42+03:00
New Revision: 421d6ccc4c663b90aa03be7b7598fff50478e997

URL: https://github.com/llvm/llvm-project/commit/421d6ccc4c663b90aa03be7b7598fff50478e997
DIFF: https://github.com/llvm/llvm-project/commit/421d6ccc4c663b90aa03be7b7598fff50478e997.diff

LOG: [clang][NFC] Annotate `CXXInheritance.h` with `preferred_type`

Added: 
    

Modified: 
    clang/include/clang/AST/CXXInheritance.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/AST/CXXInheritance.h b/clang/include/clang/AST/CXXInheritance.h
index eec2119f4a1801e..d18e1ce7e0e9e4d 100644
--- a/clang/include/clang/AST/CXXInheritance.h
+++ b/clang/include/clang/AST/CXXInheritance.h
@@ -131,6 +131,7 @@ class CXXBasePaths {
   /// class subobjects for that class type. The key of the map is
   /// the cv-unqualified canonical type of the base class subobject.
   struct IsVirtBaseAndNumberNonVirtBases {
+    LLVM_PREFERRED_TYPE(bool)
     unsigned IsVirtBase : 1;
     unsigned NumberOfNonVirtBases : 31;
   };


        


More information about the cfe-commits mailing list