[clang] [clang][Sema] Move computing enum width and type to a separate function (PR #120965)
Ilia Kuklin via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 23 11:01:53 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,
----------------
kuilpd wrote:
Removed `Enum`, `is_cpp` and `BestWidth`, but unfortunately when calling this function from LLDB, `Context` in Sema is empty, so it has to be passed as an argument.
https://github.com/llvm/llvm-project/pull/120965
More information about the cfe-commits
mailing list