How to find similar patters in C/C++ Source Code?

  c++, parsing, pattern-matching, xml-parsing

I am trying to find certain patterns inside a large mixed C/C++ source code. Based on such patterns I would like to make some changes in the code.

I tried pygccxml as code parser , but it seems like it need all dependencies, headers and macros to parse. Is there a tool that can help ?

Source: Windows Questions C++