Bug 565926 - Find symbols with no occurrence
Summary: Find symbols with no occurrence
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: Next   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-09 22:36 EDT by Marc-André Laperle CLA
Modified: 2020-08-09 22:36 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-André Laperle CLA 2020-08-09 22:36:40 EDT
It would be useful to query the index for symbols that have no occurrences in the index, aside from the declaration and definition. This would be a help to find possible code to remove. Of course it might not be perfect, especially in the context of many disjoint configurations (different targets) but it might generate a good first list to look at.
I think this would be fairly easy to implement as all the information is already in the index AFAIK.
For the UI, I would suggest hooking it in the context menu of the project > Source > "Find Symbols without References". It would be a similar placement than "Find Broken External Strings" in Java.