[clang] [C] Disallow declarations where a statement is required (PR #92908)
via cfe-commits
cfe-commits at lists.llvm.org
Thu May 23 10:13:19 PDT 2024
================
@@ -467,15 +467,18 @@ class Parser : public CodeCompletionHandler {
/// Flags describing a context in which we're parsing a statement.
enum class ParsedStmtContext {
+ /// This context permits declarations in language modes where declarations
+ /// are not statements.
+ AllowDeclarationsInC = 0x1,
----------------
cor3ntin wrote:
@shafik L481 below
https://github.com/llvm/llvm-project/pull/92908
More information about the cfe-commits
mailing list