#42 definitions are also references

v0.9
closed-rejected
None
5
2009-03-26
2002-02-19
Shree
No

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]

Discussion

  • Malcolm Box

    Malcolm Box - 2002-05-09
    • assigned_to: nobody --> mbox
     
  • Heikki Toivonen

    Heikki Toivonen - 2004-03-12

    Logged In: YES
    user_id=972898

    Can you attach a patch, please?

     
  • Malcolm Box

    Malcolm Box - 2009-03-26
    • status: open --> closed-rejected
     
  • Malcolm Box

    Malcolm Box - 2009-03-26

    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...

     

Log in to post a comment.