in reply to How to find nested calls of a specific function in C++ source and header files?
So, somehow the regexp must look across multiple lines
I'd use a parser
c++ parse C++ header parser http://starship.python.net/~tbryan/PERCEPS/
C::Analyzer, Inline::C::ParseRegExp , Text::Balanced, Elegant examples to parse parenthesised strings How do I find matching/nesting anything? Can I use Perl regular expressions to match balanced text? How do I use a regular expression to strip C style comments from a file?
|
|---|