Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
Qt Creator 4.9.2
-
None
-
Ubuntu 19.04
Description
When I use `Find References` it works perfectly fine until there is a smart pointer and a type alias or typedef for the smart pointer.
Using a type alias inside a smart pointer works perfectly fine.
The use case for this is, when I have a pure abstract class which is passed around using a smart pointer I normally have a smart_ptr_typedefs.h with forward declarations and type aliases i.e.
using UMyClass = std::unique_prt<MyClass>;
using UConstMyClass = std::unique_prt<const MyClass>;
Having the type alias inside the class does solve the problem.
The problem gets triggered by the class including the file where its type alias is defined.
When the content of the included file is replaced with the include and the alias for that particular type is changed the problem vanishes.
It seems as if ClangCodeModel does not respect header guards and runs in kind of a alias redefinition.
When not using ClangCodeModel the problem still persists.