[all-commits] [llvm/llvm-project] d13b86: [clang][Parser] Warn when the body of expansion st...

Yanzuo Liu via All-commits all-commits at lists.llvm.org
Tue Jul 21 01:10:18 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d13b8625eef0941f48b5af74e9fab953b6430eb2
      https://github.com/llvm/llvm-project/commit/d13b8625eef0941f48b5af74e9fab953b6430eb2
  Author: Yanzuo Liu <zwuis at outlook.com>
  Date:   2026-07-21 (Tue, 21 Jul 2026)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Basic/DiagnosticParseKinds.td
    M clang/lib/Parse/ParseStmt.cpp
    A clang/test/Parser/cxx2c-expansion-statements-non-compound-stmt-body.cpp

  Log Message:
  -----------
  [clang][Parser] Warn when the body of expansion statement is not a compound statement (#209229)

<https://eel.is/c++draft/stmt.expand#nt:expansion-statement>:

_expansion-statement_:  
template for ( _init-statement<sub>opt</sub>_ _for-range-declaration_ :
_expansion-initializer_ ) _compound-statement_



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list