考虑这个源片段:
class Z
{
public:
Z(int){}
void foo() {}
};
这按预期工作:
int main()
{
Z a(1);
a. // <- at this point, a list of functions appears in a menu
这根本不起作用:
Z b // <- at this point, nothing happens if I press <Tab> or C-X C-U
// except a "pattern not found" message
Z b( // <- same here
但这确实:
Z b = Z // a list of constructors appears in a menu when <Tab> is pressed
是否可以设置 clang_complete 使得构造函数完成在两种情况下都有效?