clang: fix auto completion when cursor is on end of line