CppAst.NET icon indicating copy to clipboard operation
CppAst.NET copied to clipboard

Issue parsing a class field which its type is a template class

Open yossik1977 opened this issue 4 years ago • 0 comments

Hi, Consider the following code: class TemplateTesterClass { public: TestTemplate a; TestNamespace::TestTemplate2 b; };

Field 'a' is parsed correctly, its type is fully available by using the Type.GetDisplayName() I get "TestTemplate", from which I can extract the "int". However in field 'b' the parser reacts differently and I get only "TestTemplate2" from the parser by using the Type.GetDisplayName(). The difference is TestTemplate2 is in a namespace named "TestNamespace".

The problem is the type "int" for field 'b' is not available from the parser.

yossik1977 avatar Mar 21 '21 06:03 yossik1977