Is there a tool that would allow searching a C++ code base on type signature? Someone recently pointed me to the powerful Haskell tool Hoogle and I'd love to have something similar for our codebase.
To expand, I'm interested in doing queries of the following type:
I have a class Foo
, and I know there exists a function that maps it to an associated Bar
, but I can't recall the name of the function. I'd like to be able to ask something: "Give me all the functions that take a Foo
, and provide a Bar
.
A couple of notes:
This is pretty much exactly my question, but for Java. Unfortunately, the solution presented there requires reflection.
It seems like Doxygen has the information to do something like this, however, I'm not sure how one would configure it to provide this. Is there a tool that consumes Doxygen XML to provide this kind of functionality?
Fuzzy answers are acceptable! C++ has a complex enough feature set that the tool may not be 100% accurate -- but it may still be better than nothing.