[clang] [clang] Rework `hasBooleanRepresentation`. (PR #136038)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 16 23:53:01 PDT 2025
================
@@ -5238,6 +5238,14 @@ inline bool IsEnumDeclScoped(EnumDecl *ED) {
return ED->isScoped();
}
+/// Return the integer type corresponding to the given decl.
+///
+/// We use this function to break a cycle between the inline definitions in
+/// Type.h and Decl.h.
+inline QualType GetEnumDeclIntegerType(EnumDecl *ED) {
----------------
tbaederr wrote:
Can we make the parameter const?
https://github.com/llvm/llvm-project/pull/136038
More information about the cfe-commits
mailing list