Switch c-index-test from clang_codeComplete() over to
clang_codeCompleteAt(). This uncovered a few issues with the latter: - ASTUnit wasn't saving/restoring diagnostic state appropriately between reparses and code completions. - "Overload" completions weren't being passed through to the client git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116241 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Sema/CodeCompleteConsumer.h 2 additions, 1 deletioninclude/clang/Sema/CodeCompleteConsumer.h
- lib/Frontend/ASTUnit.cpp 10 additions, 1 deletionlib/Frontend/ASTUnit.cpp
- lib/Sema/SemaCodeComplete.cpp 4 additions, 2 deletionslib/Sema/SemaCodeComplete.cpp
- test/Index/complete-at-directives.m 7 additions, 7 deletionstest/Index/complete-at-directives.m
- test/Index/complete-at-exprstmt.m 3 additions, 3 deletionstest/Index/complete-at-exprstmt.m
- test/Index/complete-method-decls.m 7 additions, 7 deletionstest/Index/complete-method-decls.m
- test/Index/complete-recovery.m 6 additions, 6 deletionstest/Index/complete-recovery.m
- tools/c-index-test/c-index-test.c 29 additions, 27 deletionstools/c-index-test/c-index-test.c
- tools/libclang/CIndexCodeCompletion.cpp 36 additions, 7 deletionstools/libclang/CIndexCodeCompletion.cpp
Loading
Please register or sign in to comment