Subject: Re: bug#7918: [PATCH] cc-mode: only the first clause of a for-loop should be checked for declarations

From: Daniel Colascione <[email-masked]>
Date: Thu, 25 Feb 2016 22:31:51 -0800

On 02/25/2016 10:18 PM, Lars Ingebrigtsen wrote:
> +                ;; After a ";" in a for-block. A declaration can never
> +                ;; begin after a `;' if the most enclosing paren is a
> +                ;; `('.-declarators' handles the rest.

Hrm. That's not true in general. Consider Java's try-with-resources
construct:

    try (Foo foo = new Foo(); Bar bar = new Bar()) { ... }