[Lxr-dev] [ lxr-Bugs-519945 ] definitions are also references
Brought to you by:
ajlittoz
From: SourceForge.net <no...@so...> - 2009-03-26 17:36:32
|
Bugs item #519945, was opened at 2002-02-19 12:56 Message generated for change (Comment added) made by mbox You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=519945&group_id=27350 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: v0.9 >Status: Closed >Resolution: Rejected Priority: 5 Private: No Submitted By: Shree (shreekumar) Assigned to: Malcolm Box (mbox) Summary: definitions are also references Initial Comment: LXR 0.9.1 [as well as older versions] shows definition also in the list of references. eg consider a file test.c --- #define TEST 1 -- Searching for "TEST" will show that it is 1. a macro defined at line 1, file test.c and 2. referenced in test.c at line 1 If the number of definitions is small, this is OK. But when the number of definitions is large, finding which of the references are actually references becomes a pain. The easiest solution for this would be to remove all definitions from the references list. If this is acceptable, I have a patch ready [the backend is MySQL] ---------------------------------------------------------------------- >Comment By: Malcolm Box (mbox) Date: 2009-03-26 17:36 Message: This is by design - the definition is a reference to the file. Having multiple definitions should be rare, since most languages require a single definition... ---------------------------------------------------------------------- Comment By: Heikki Toivonen (hjtoi) Date: 2004-03-12 16:17 Message: Logged In: YES user_id=972898 Can you attach a patch, please? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=519945&group_id=27350 |