Add IsConcept bit to VarDecl::NonParmVarDeclBitfields and associated isConcept/setConcept member functions. Set IsConcept to true when 'concept' specifier is in variable declaration. Create diagnostic when variable concept is not initialized.
Details
Details
- Reviewers
faisalv aaron.ballman • fraggamuffin rsmith hubert.reinterpretcast - Commits
- rG8567a000b9a5: [CONCEPTS] Add concept to VarDecl and diagnostic for uninitialized variable…
rC243876: [CONCEPTS] Add concept to VarDecl and diagnostic for uninitialized variable…
rL243876: [CONCEPTS] Add concept to VarDecl and diagnostic for uninitialized variable…
Diff Detail
Diff Detail
Event Timeline
Comment Actions
If deemed necessary, I can split this patch out to two patches; one for adding IsConcept to the NonParmVarDeclBitfields bitfield and associated VarDecl member functions and another patch for the Diagnostic/tests
Comment Actions
LGTM
Eventually, we'll presumably want separate isConstexprSpecified / isConstexpr functions on VarDecl (and FunctionDecl), and for the concept specifier to imply constexpr, but that can wait for a separate change.
lib/Sema/SemaDecl.cpp | ||
---|---|---|
9417–9418 | Looks like this would fit on one line. |
Looks like this would fit on one line.