From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#57996: 28.2; imenu doesn't differentiate overloaded c++ functions Date: Sun, 02 Oct 2022 13:13:16 +0000 Message-ID: <87v8p22wsz.fsf@posteo.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25197"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Mackenzie , 57996@debbugs.gnu.org To: "Chris Hecker" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 02 15:14:18 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oeynR-0006NC-IQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Oct 2022 15:14:17 +0200 Original-Received: from localhost ([::1]:43944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeynQ-0007yC-Dg for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Oct 2022 09:14:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeynC-0007xx-EI for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2022 09:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47417) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oeynC-0002T5-5l for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2022 09:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oeynB-000896-TI for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2022 09:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Oct 2022 13:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57996 X-GNU-PR-Package: emacs Original-Received: via spool by 57996-submit@debbugs.gnu.org id=B57996.166471641031267 (code B ref 57996); Sun, 02 Oct 2022 13:14:01 +0000 Original-Received: (at 57996) by debbugs.gnu.org; 2 Oct 2022 13:13:30 +0000 Original-Received: from localhost ([127.0.0.1]:46495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeymg-00088F-Cv for submit@debbugs.gnu.org; Sun, 02 Oct 2022 09:13:30 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:49817) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeyme-000881-46 for 57996@debbugs.gnu.org; Sun, 02 Oct 2022 09:13:29 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9001724010A for <57996@debbugs.gnu.org>; Sun, 2 Oct 2022 15:13:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1664716401; bh=N3WObZp3m0HUtE0pqXL0rdZ3jcuctdD4WVoNyR+/+qs=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=qqgM+eP3vViMkchpMQ/zmBneLm0nwP8lLJDZhgdKztyaOZKEZEpKwxMO0fOXrA6Fu BMkE9xfXtHDe2lvzqn+pkVKaVB7cZPEGdxRxRHX/OacIEvM0wMEiYg2b+pqrZizIit TRyVsW5jR87yIpeh33xV6ayif69rgey0nY2htkZ9LOPj0bzHdwxHHmlSRgRmrkr32y y0n8rhEt86hIAjQgg3mz46wL43lq5/9SDOvBngjAHkB8499OWNnKABSYl0DWx6Gpc+ f9k2p2Wy20QCl8SqNXnoiNcfCYLjsJu5vc6MEF/S+psFItUijT6SH4FY95O89lnqvm 59d1i4GLub7cg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MgPXs1h1zz9rxB; Sun, 2 Oct 2022 15:13:17 +0200 (CEST) In-Reply-To: (Chris Hecker's message of "Thu, 22 Sep 2022 04:16:55 +0000") Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:244216 Archived-At: "Chris Hecker" writes: > With this dumb c++ file: > ---- > int Function( int n ) { > return n; > } > int Function( float v ) { > return (int)(v + 0.5); > } > ---- > > Hitting imenu only gives a single Function entry. It should probably > give two, maybe with a line number after them like "Function(123)" or > whatever. Currently there's no way to get to the second Function from > imenu. Note that this is not the case when using Eglot and a LSP server like clangd. I've CC'ed Alan to see if he knows how this could be done by c++-mode itself.