次のソース フラグメントを検討してください。
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 をセットアップすることは可能ですか?