[clang] [clang][Sema] Move computing enum width and type to a separate function (PR #120965)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 14 10:41:55 PST 2025


================
@@ -5209,6 +5209,85 @@ QualType ASTContext::getEnumType(const EnumDecl *Decl) const {
   return QualType(newType, 0);
 }
 
+bool ASTContext::computeBestEnumTypes(bool isPacked, unsigned NumNegativeBits,
----------------
Sirraide wrote:

```suggestion
bool ASTContext::computeBestEnumTypes(bool IsPacked, unsigned NumNegativeBits,
```

https://github.com/llvm/llvm-project/pull/120965


More information about the cfe-commits mailing list