[PATCH] D128687: [pseudo] Allow mixed designated/undesignated init lists.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 28 06:44:55 PDT 2022


sammccall marked an inline comment as done.
sammccall added inline comments.


================
Comment at: clang-tools-extra/pseudo/lib/cxx.bnf:468
 designator := . IDENTIFIER
+designator := [ expression ]
 expr-or-braced-init-list := expression
----------------
hokein wrote:
> I think this is the syntax of gnu extension, can we add a trailing comment for this rule?
Done - these are actually also legal in C. Also added to commit message.

(I don't love using trailing comments in this file - they feel hard to spot).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128687/new/

https://reviews.llvm.org/D128687



More information about the cfe-commits mailing list