Subject: bug#74448: 30.0.92; c-ts-mode outlines only work with GNU or emacs style

From: Juri Linkov <[email-masked]>
Date: Tue, 11 Feb 2025 19:42:53 +0200

>> Do you remember why we removed this condition from
>> 'c-ts-mode--defun-name':
>>
>>   (equal (treesit-node-type (treesit-node-parent node))
>>          "function_definition")
>
> Don't remember the exact reason, seems a mistake looking at it
> now. Probably got lost while trying to find a good matcher for
> declarators and didn't have stand-alone prototypes in my test case to
> show the issue.
>
> I'd say to restore that check. Did a brief test here and it does not
> seem to break anything else.

Now 'treesit-outline-search' was fixed that allowed
to simplify 'c-ts-mode--defun-name' and also handle
the case with "pointer_declarator" between "function_definition"
and "function_declarator".