Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
Qt Creator 4.11.0-beta1
Description
Consider the simple code below:
#include <vector> template<typename real = double> class TestClass { public: template<typename T> using ArrayType = std::vector<T>; private: ArrayType<real> testMember; public: void test() { testMember. // <--- try auto-completion here with ClangModel enabled //(should not work.) Then try it with disabled //(should work). } };
When trying autocompletion with ClangCodeModel enabled in the part of the code where the comment specifies, it does not work. Turning ClangCodeModel off, autocompletion works.
A simple change to the code above causes it to work with ClangCodeModel:
#include <vector> class TestClass { public: template<typename T> using ArrayType = std::vector<T>; private: ArrayType<double> testMember; public: void test() { testMember. // <--- try auto-completion here with ClangCodeModel // enabled (should work now.) } };
At the very least this is inconsistent. In the worst case, this is a bug in the ClangCodeModel plugin.