diff options
author | Muhammad Omair Javaid <omair.javaid@linaro.org> | 2022-11-14 12:27:11 +0400 |
---|---|---|
committer | Muhammad Omair Javaid <omair.javaid@linaro.org> | 2022-11-14 12:27:11 +0400 |
commit | 0b94525ddcfc069941a20abcbe447e659ffb6e33 (patch) | |
tree | c08550ccbe841b32a078df057e9b412bd906235a /clang/tools/c-index-test/c-index-test.c | |
parent | 10ab29ec6eaf3ee0a70574b4cb6f79a4df01d47d (diff) | |
download | llvm-0b94525ddcfc069941a20abcbe447e659ffb6e33.zip llvm-0b94525ddcfc069941a20abcbe447e659ffb6e33.tar.gz llvm-0b94525ddcfc069941a20abcbe447e659ffb6e33.tar.bz2 |
Revert "[libclang] Expose completion result kind in `CXCompletionResult`"
This reverts commit 97105e5bf70fae5d9902081e917fd178b57f1717.
It breaks clang-armv8-quick buildbot:
https://lab.llvm.org/buildbot/#/builders/245/builds/761
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r-- | clang/tools/c-index-test/c-index-test.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c index 4d49dfa..108b445 100644 --- a/clang/tools/c-index-test/c-index-test.c +++ b/clang/tools/c-index-test/c-index-test.c @@ -2512,10 +2512,7 @@ static void print_completion_result(CXTranslationUnit translation_unit, unsigned index, FILE *file) { CXCompletionResult *completion_result = completion_results->Results + index; - CXString ks = - completion_result->CursorKind == CXCursor_NotImplemented - ? clang_getCompletionResultKindSpelling(completion_result->ResultKind) - : clang_getCursorKindSpelling(completion_result->CursorKind); + CXString ks = clang_getCursorKindSpelling(completion_result->CursorKind); unsigned annotationCount; enum CXCursorKind ParentKind; CXString ParentName; |