>I don't see how having the type makes it easier to grep, grep finds the function name regardless
It's not about finding the function name in general, it's about finding where the function is actually declared -- not in the call sites.
>You can also search for something like "\w+\s(.?)\s{"*
Yeah, or use ctags. That's why they said "simpler".
"^foo" beats that.
Re:Porting the Go compiler from C to Go
by raverbashing on Friday April 25, 2014 @02:30PM
(#7648246)
Yeah, ctags is a good choice
> "^foo" beats that
because it's so hard to use ctags...
So how do you use ctags with grep?
You can also search for something like "\w+\s(.?)\s*{"