This patch adds anonymous namespaces support to the native PDB plugin.
I had to reference from the main function variables of the types that are inside of the anonymous namespace to include them in debug info. Without the references they are not included. I think it's because they are static, then are visible only in the current translation unit, so they are not needed without any references to them.
There is also the problem case with variables of types that are nested in template structs. For now I've left FIXME in the test because this case is not related to the change.
Is this a new problem because of your change? Or is this an already existing problem you discovered in the process? Is the cause understood? Should you add a commented-out CHECK showing what the test would be when this problem is fixed?