================
@@ -1726,6 +1726,12 @@ class ASTContext : public RefCountedBase<ASTContext> {
 
   QualType getEnumType(const EnumDecl *Decl) const;
 
+  /// Compute BestType and BestPromotionType for an enum based on the highest
+  /// number of negative and positive bits of its elements.
+  bool computeBestEnumTypes(bool isPacked, unsigned NumNegativeBits,
----------------
Sirraide wrote:

nit: maybe also mention that it returns `true` if there is no suitable integer 
type.

https://github.com/llvm/llvm-project/pull/120965
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to