[clang] [Clang] [C++26] Expansion Statements (Part 1: AST) (PR #169680)
via cfe-commits
cfe-commits at lists.llvm.org
Mon May 4 08:18:28 PDT 2026
================
@@ -196,6 +196,16 @@ class Scope {
/// declared in this scope.
unsigned short PrototypeIndex;
+ /// IsExpansionStmtScope - This is the scope corresponding to a C++26
+ /// expansion statement.
+ ///
+ /// FIXME: This should be part of ScopeFlags, but we're out of bits, so we
+ /// need to update every place that uses 'unsigned' to hold scope flags. We
+ /// should probably redefine ScopeFlags as an 'enum class : uint64_t' and
+ /// use LLVM_MARK_AS_BITMASK_ENUM() and friends so we can continue to '|'
+ /// scope flags together.
+ bool IsExpansionStmtScope;
+
----------------
Sirraide wrote:
I mean, I can look into that I suppose, but not sure how much work that would end up being
https://github.com/llvm/llvm-project/pull/169680
More information about the cfe-commits
mailing list