The identifier search page doesn't allow language-specific searching. This would be updated as follows:
1) Users are given the option to restrict their search to specific programming languages via a series of check boxes. By default all languages will be selected for searching.
2) The list of programming languages shown will be auto-generated to be just those listed in the LXR index.
When source files are being shown by LXR all text that matches a symbol in the LXR index are shown as links to an identifier search for that symbol. This would be updated as follows:
3) Only symbols in the same programming language as the file itself would be shown as identifier search links. Any text matching symbols in other programming languages would not be treated as symbols.
4) The symbol links would be restricted to identifier searches of just symbols of the same programming language. NB the user could then easily add other languages to the search as per sub-feature (1).
Additional sub-feature:
5) The general search page doesn't allow language-specific searching. This would be updated in exactly the same way as described for the identifier search pages in sub-features (1) and (2).
This feature would be a little easier to do if Feature Request 1691378 (Rearchitect the DB backends) was done first.
See https://sourceforge.net/tracker/?func=detail&aid=1691378&group_id=27350&atid=390120.
Malcolm has requested the sub-features (3) and (4) be configurable. Potentially a good way to do this would be to do this using the filetype section of lxr.conf and hence specify the configurablility per file type.
Would also be good to fix this bug https://sourceforge.net/tracker/?func=detail&aid=469413&group_id=27350&atid=390117 (identifier checking doesn't take account of release) at the same time if you're making changes in this area.