From: SourceForge.net <no...@so...> - 2004-12-28 18:19:17
|
Feature Requests item #1087162, was opened at 2004-12-17 09:38 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=354664&aid=1087162&group_id=4664 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: kdev (kdev) Assigned to: Nobody/Anonymous (nobody) Summary: Request command to list all symbols that match an expression Initial Comment: It would be nice if cscope had a command like "=<symbol>" that listed all symbols that matched a regular expression. Then when a user made a selection from the list, all of the matching expressions for that symbol would be displayed. For instance, if I wanted to see all the symbols that had the expression "MAX" in it, I would do something like "=MAX" to get a listing of all of them. Then when I selected one of the entries, I would get the listing of all instances of that selected symbol. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-12-28 10:19 Message: Logged In: NO I believe what you're asking for is already implemented: Simply use a regular expression in a definition search (query type #1). There is, however, a bug in finddef() when used with a regular expression - the function field specifies the regular expression instead of the matched symbol. I think this should be fixed. ---------------------------------------------------------------------- Comment By: Hans-Bernhard Broeker (broeker) Date: 2004-12-27 09:07 Message: Logged In: YES user_id=27517 It's not very different from typing in a regex in the 'find definition of symbol' field, though... The main missing piece would then be a different one: cscope doesn't do "search among the results of the previous search" kind of operation. You have to re-type a more specific regexp from scratch (or edit it in place). ---------------------------------------------------------------------- Comment By: kdev (kdev) Date: 2004-12-23 07:51 Message: Logged In: YES user_id=1180331 This is different from an egrep search because this type of search would use a quick database search instead of a very slow egrep pattern search through all the data files. I have a database for several thousand source files which are maintained in a ClearCase database. To do an egrep on a file means that ClearCase would have to create the cleartext for it if it didn't already exist. That adds even more time to an already slow process. There used to use a cscope-like utility called 'scan' that I believe was written by Jack Applin back in the HP/Apollo timeframe. This utility had this capability and it was EXTREMELY efficient. ---------------------------------------------------------------------- Comment By: Neil Horman (nhorman) Date: 2004-12-17 09:50 Message: Logged In: YES user_id=827328 how is that different from "Find this egrep pattern"? Granted, the way its setup now means you have to do the egrep search, find the symbol you want, and then paste that into a specific symbol search, but that seems like an easy enough task compared to merging these two searches into one operation. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=354664&aid=1087162&group_id=4664 |