Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • gnome-builder gnome-builder
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 149
    • Issues 149
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • gnome-buildergnome-builder
  • Merge requests
  • !141

add symbol hover support for codesearch.debian.net

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed Nelson Ben requested to merge 0-codesearch-debian-net into main Dec 23, 2018
  • Overview 4
  • Commits 1
  • Pipelines 1
  • Changes 1

When we are showing symbol info for a macro or a function in a c file, then add a link to search the source code of that macro/function in codesearch.debian.net .

It uses the codesearch.debian.net regex search with the following regex which looks up source definitions for C macros and functions:

(?mi:^(?:#define\s+)?func_name)\s*((?m:([^;]+)$)

Note: This was implemented in the Symbol hover info because the plugin hooks for extending context menu doesn't let you add/filter an action that is only shown for macro and function symbols in c files . While the Symbol hover card lets you add info for only that case, as this MR does.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 0-codesearch-debian-net