fix autocomplete didn't work in c/c++/global