Note (31.05.2014): Clang's APIs evolve quickly, and this includes libclang and the Python bindings. Therefore, the samples in this post may no longer work. For working samples that are kept up-to-date with upstream Clang, check out my llvm-clang-samples repository on Github. People that need to parse and analyze C code in Python are usually really excited to run into pycparser. However, when the t