Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Post History

75%
+4 −0
Q&A List what file(s) an identifier was declared in?

I'm using Doxygen to help me figure out some library code. There's an enum I know I need to use, but I don't know which file it's declared in. Searching for that identifier in Doxygen yields the p...

1 answer  ·  posted 4y ago by Hyperlynx‭  ·  last activity 3y ago by summea‭

Question doxygen
#1: Initial revision by user avatar Hyperlynx‭ · 2020-12-16T01:10:50Z (almost 4 years ago)
List what file(s) an identifier was declared in?
I'm using Doxygen to help me figure out some library code. There's an `enum` I know I need to use, but I don't know which file it's declared in.

Searching for that identifier in Doxygen yields the page for the whole namespace in which it is declared. If I click on it in the summary at the top of the page, to go to the detailed info, I get only the signature and table of what's in the `enum`.

![Doxygen entry for an enum](https://software.codidact.com/uploads/U7bCcHtLocMNWqBx2pdREANF)

Is there any way to make it also show which file(s) the `enum` was declared in?

For classes that have their own page, there is indeed text at the bottom saying "The documentation for this class was generated from the following files:" and then a list of the relevant files, and that's very useful. `enum`s and the like do not get their own page, however.

In this case I'll probably end up just using a tool like `grep` to find it, but if anyone knows a way to get this info to show up in the Doxygen output that would be super helpful.