Skip to content

definition search displays comment lines (Bugzilla #2573) #294

Closed
@vladak

Description

@vladak

status CLOSED severity enhancement in component webapp for ---
Reported in version unspecified on platform ANY/Generic
Assigned to: Trond Norbye

On 2008-07-17 07:43:03 +0000, Vijay wrote:

Definition search in opengrok displays the matching comment lines of the source file also. It should only display definition.
e.g. In case of c/c++ files, it shows the matching lines which are in between /* ....*/.

On 2008-08-01 11:52:51 +0000, Trond Norbye wrote:

This is not a bug, but a feature. OpenGrok will just search for files containing the definition, but it will list all occurrences of the symbol in the files that contain the definition. If you look in the search result it will print "function" behind the mach for the actual definition in the file.

If you dislike this behavior, please reopen the issue and create a patch that removes the other results :-)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions