Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.13.2
-
None
Description
When there is a using type alias for a struct inside a namespace, the code model gets confused and thinks that subsequent functions are in the namespace named as the alias:
#include "myclass.h" namespace ns { using StructType = struct { int a; char b; }; MyClass::MyClass() { } void MyClass::Function() { } } //ns
This results in the following model:
Consequently, this causes the Function() to be unreachable when ctrl+LMB cliked in the header.
When I remove the using StructType it's ok again.
Whole project attached.