diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-05-25 05:58:43 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-05-25 05:58:43 +0000 |
commit | 6da3db4af3bf89029111e8f92c61484fe1c1ec51 (patch) | |
tree | 073a33ea93c8c18a3b029d345fc9149344186c81 /clang/tools/libclang/CIndexCodeCompletion.cpp | |
parent | 658dd8b176f9fd34d63b0fe329d585a709c40759 (diff) | |
download | bcm5719-llvm-6da3db4af3bf89029111e8f92c61484fe1c1ec51.tar.gz bcm5719-llvm-6da3db4af3bf89029111e8f92c61484fe1c1ec51.zip |
Improve code completion in failure cases in two ways:
1) Suppress diagnostics as soon as we form the code-completion
token, so we don't get any error/warning spew from the early
end-of-file.
2) If we consume a code-completion token when we weren't expecting
one, go into a code-completion recovery path that produces the best
results it can based on the context that the parser is in.
llvm-svn: 104585
Diffstat (limited to 'clang/tools/libclang/CIndexCodeCompletion.cpp')
0 files changed, 0 insertions, 0 deletions