aboutsummaryrefslogtreecommitdiff
path: root/clang/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorJugst3r <38359364+Jugst3r@users.noreply.github.com>2025-05-05 13:06:02 +0200
committerGitHub <noreply@github.com>2025-05-05 07:06:02 -0400
commit93680b5242bf9a1555f95f633d45e348cf103527 (patch)
tree0f1f7282aab3e1c9b6df095bc6d23852b6e42b60 /clang/tools/c-index-test/c-index-test.c
parentb492ec5899082af9f34d79be9750b5e5c5d082e1 (diff)
downloadllvm-93680b5242bf9a1555f95f633d45e348cf103527.zip
llvm-93680b5242bf9a1555f95f633d45e348cf103527.tar.gz
llvm-93680b5242bf9a1555f95f633d45e348cf103527.tar.bz2
Remove duplicate API (#132776)
And adapt the existing code to account for the comments made when introducing the duplicate API. Note that this introduces a retro-incompatibility with LLVM 19. cc @sebastianpoeplau
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r--clang/tools/c-index-test/c-index-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index ee4a2f3..4a887cd 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/tools/c-index-test/c-index-test.c
@@ -1863,14 +1863,14 @@ static enum CXChildVisitResult PrintTypeSize(CXCursor cursor, CXCursor p,
static enum CXChildVisitResult PrintBinOps(CXCursor C, CXCursor p,
CXClientData d) {
enum CXCursorKind ck = clang_getCursorKind(C);
- enum CX_BinaryOperatorKind bok;
+ enum CXBinaryOperatorKind bok;
CXString opstr;
if (ck != CXCursor_BinaryOperator && ck != CXCursor_CompoundAssignOperator)
return CXChildVisit_Recurse;
PrintCursor(C, NULL);
- bok = clang_Cursor_getBinaryOpcode(C);
- opstr = clang_Cursor_getBinaryOpcodeStr(bok);
+ bok = clang_getCursorBinaryOperatorKind(C);
+ opstr = clang_getBinaryOperatorKindSpelling(bok);
printf(" BinOp=%s %d\n", clang_getCString(opstr), bok);
clang_disposeString(opstr);
return CXChildVisit_Recurse;