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.
Attachments
For Gerrit Dashboard: QTCREATORBUG-24875 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
320142,2 | clangbackend: Work around wrong cursor info from libclang | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
320196,2 | C++: Extend alias declaration support in built-in parser | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |