|
From: | Rolf Ade |
Subject: | bug#23775: 25.0.95.2; c-mode: Incorrect indentation and function bundery detection |
Date: | Wed, 22 Jun 2016 01:16:00 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
Hello Alan, Am 06/16/2016 11:18 AM, Alan Mackenzie wrote:
[...] I tried once before to solve this problem, but didn't get very far. What was obvious, at the time, was that a solution would slow CC Mode down, possibly quite a bit. So, we've collectively decided that this bug, although real, won't be fixed. The best advice we can give is to arrange the C code such that unbalanced braces in #if arms don't happen. Sorry.
Just for the record: I stumbled about that in the wild. This function: http://core.tcl.tk/tdom/artifact/3a53ac985a15644d?ln=2142-2535 triggers the bug. I stripped down to a minimal example from that, not from the idea to do "preprocessor tricks" to fool c-mode.
[Prev in Thread] | Current Thread | [Next in Thread] |