[clang] [Clang] support storage-class specifiers in C23 compound literals (PR #212559)
Oleksandr Tarasiuk via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 1 08:47:15 PDT 2026
================
@@ -3644,29 +3644,41 @@ class MemberExpr final
}
};
-/// CompoundLiteralExpr - [C99 6.5.2.5]
+/// CompoundLiteralExpr - [C99 6.5.2.5, C23 6.5.3.6]
///
class CompoundLiteralExpr : public Expr {
+public:
+ enum class ScopeKind { Block, File, ParameterList };
----------------
a-tarasyuk wrote:
Your reading is correct. `ParameterList` was only used internally to manage cleanup timing for compound literals in parameter bounds, not as a separate semantic scope.
https://github.com/llvm/llvm-project/pull/212559
More information about the cfe-commits
mailing list