Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: Qt Creator 4.13.2
-
Fix Version/s: Qt Creator 4.15.0-beta1 (4.15 branch)
-
Component/s: C/C++/Obj-C++ Support
-
Labels:None
-
Platform/s:
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.