enum class Parser::AllowDefiningTypeSpec

Description

Whether a defining-type-specifier is permitted in a given context.

Declared at: clang/include/clang/Parse/Parser.h:2229

Enumerators

NameValueComment
No0The grammar doesn't allow a defining-type-specifier here, and we must not parse one (eg, because a '{' could mean something else).
NoButErrorRecovery1The grammar doesn't allow a defining-type-specifier here, but we permit one for error recovery purposes. Sema will reject.
YesButInvalid2The grammar allows a defining-type-specifier here, even though it's always invalid. Sema will reject.
Yes3The grammar allows a defining-type-specifier here, and one can be valid.