只要不使用自动补全,就正常
比如一个函数
void foo(const std::string& arg)
如果用自动补全(而非手动输入)选择输入了foo(str)
(其中str是手动输入的,输入之前会出现const std::string& arg
的提示),就会一直在参数str
下面提示错误,类似于use of un declared identifier 'onst', did you mean 'const'?
,似乎是把自动补全时出现的参数列表提示当成了输入,而且一直生效(虽然补全提示在输入结束就没了,但是对错误检查还是可见?)