I´m trying to program something using the SDK of some software. In a lot of the .hpp files, there is some namespaces. Sometimes I can´t find the definition of certain things and I was wondering if they were defined in the namespaces. Is there any way to traceback a namespace to see its content?
@BJKY0712 I'm pretty certain VS has some powerful code browsing and navigation tools. I don't know if it's possible to get it to show everything in a namespace, but it should certainly be possible to right-click on an entity in the code, and get VS to open the file containing the definition and navigate to that definition.
@George P This seems to be a general question about using developer tools to navigate a codebase, rather than a specific question about the ModuleWorks code.
grep can help faster and more flexible than searches in MSVS.
cygwin offers a windows version, I use that one. I also use 3 programs I wrote myself called linefilter, linekeeper, and showline. on occasion i use those where grep gets weird about regex that was meant to be literal text, as my regex is weak, and showline can give me a slice of code out of a file from line start to line end.
nothing fancy but with it, I can usually trace out anything once I figure out the keywords I need.
In VS, F12 and Ctrl+F12 on a variable/name lets it go to "Definition" (declaration) and "Implementation" (definition), respectively. So if it's there, that should work. I forget if it can handle complicated things like template specializations.
Edit: But if you're not sure what namespace it's in, this is not so helpful. In that case, I agree with jonnin, you might be better off using recursive grep or equivalent..
RootDirectory> grep -r "NameOfFunction" .