This is typically caused by syntactic errors in the edited file.
Autocomplete often stops working even if source file compiles without any warning. Sometimes it is something stupid like bracket placement. In that case I use editor background color as an indicator of the place where parser stopped working .
I hoped that Daniel's clang tests could improve the situation, but it appears that the idea died.