xoofx / CppAst.NET

CppAst is a .NET library providing a C/C++ parser for header files powered by Clang/libclang with access to the full AST, comments and macros
BSD 2-Clause "Simplified" License
482 stars 63 forks source link

Typedef in different Namespace wrong #48

Closed KevinGliewe closed 3 years ago

KevinGliewe commented 3 years ago

Hi there,

i encountered a bug where typedefs are not resolved properly when they are defined in another namespace:

Here is an minimal example:

namespace A
{
    typedef int (*a)(int b);
}
A::a c;

The Type of c will be resolved to int (*)()*. So naigther the typedef nor the parameters are getting the correct values.