[clang] [clang][Sema] Move computing enum width and type to a separate function (PR #120965)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 24 01:59:32 PST 2024
================
@@ -20008,6 +20008,87 @@ bool Sema::IsValueInFlagEnum(const EnumDecl *ED, const llvm::APInt &Val,
return !(FlagMask & Val) || (AllowMask && !(FlagMask & ~Val));
}
+bool Sema::ComputeBestEnumProperties(ASTContext &Context, EnumDecl *Enum,
+ bool is_cpp, bool isPacked,
----------------
Fznamznon wrote:
Hmm, then I wonder if it makes sense to make it a method of ASTContext instead of method of Sema? Usually ASTContext is used to query type information, so it might make sense.
https://github.com/llvm/llvm-project/pull/120965
More information about the cfe-commits
mailing list