You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue with how CppElement.Span is assigned in the case of headers containing forward declarations. The problem is that (in at least in some situations) the span will point to the forward declaration and not the real definition. The issue I believe lies here:
Hi,
There is an issue with how CppElement.Span is assigned in the case of headers containing forward declarations. The problem is that (in at least in some situations) the span will point to the forward declaration and not the real definition. The issue I believe lies here:
CppAst.NET/src/CppAst/CppModelBuilder.cs
Line 437 in 0fd2f5e
Where cursor.IsDefinition does not always yield the result we want. I was able to get the correct behavior using this instead:
The text was updated successfully, but these errors were encountered: