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
Name | Value | Comment |
---|---|---|
No | 0 | The grammar doesn't allow a defining-type-specifier here, and we must not parse one (eg, because a '{' could mean something else). |
NoButErrorRecovery | 1 | The grammar doesn't allow a defining-type-specifier here, but we permit one for error recovery purposes. Sema will reject. |
YesButInvalid | 2 | The grammar allows a defining-type-specifier here, even though it's always invalid. Sema will reject. |
Yes | 3 | The grammar allows a defining-type-specifier here, and one can be valid. |