mono/CppSharp — pull request #337 by golddranks (2014-10-08 01:27:15+00:00)
Title: A fix to the templates equality testing

I was able to do the pull request finally. (The problem was that I originally created a local clone of the CppSharp repository, and then pushed that to GitHub... I'm collaborating on GitHub for the first time, so I don't know how it works, pardon me!)

In C++ you are able to declare things multiple times and define them once. In the AST clang creates, every declaration is a different node, but since they actually refer to the same thing, their equality testing should compare the name and namespace instead of the reference. This fixes (at least) the crash on FixDefaultParamValuesOfOverridesPass with Qt5Gui discussed on this issue: https://github.com/mono/CppSharp/issues/328.