aboutsummaryrefslogtreecommitdiff
path: root/clang/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorAnders Langlands <anderslangands@gmail.com>2022-09-21 11:12:48 -0400
committerAaron Ballman <aaron@aaronballman.com>2022-09-21 11:12:48 -0400
commitbc14ed7de0f1f038c500b5f1d6c7a86a4a2d4527 (patch)
treea71111abc78a488204c7c93f255195d30ae86cc0 /clang/tools/c-index-test/c-index-test.c
parent9f13b9346b7c159fb40168ed0bb5dab6b0652836 (diff)
downloadllvm-bc14ed7de0f1f038c500b5f1d6c7a86a4a2d4527.zip
llvm-bc14ed7de0f1f038c500b5f1d6c7a86a4a2d4527.tar.gz
llvm-bc14ed7de0f1f038c500b5f1d6c7a86a4a2d4527.tar.bz2
Add clang_CXXMethod_isDeleted function
Adds a function to check if a method has been deleted by copy-pasting the existing implementation of clang_CXXMethod_isDefaulted and changing it to call CXXMethod::isDeleted() instead. Differential Revision: https://reviews.llvm.org/D133924
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r--clang/tools/c-index-test/c-index-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index 8eac69d..901ab82 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/tools/c-index-test/c-index-test.c
@@ -900,6 +900,8 @@ static void PrintCursor(CXCursor Cursor, const char *CommentSchemaFile) {
printf(" (mutable)");
if (clang_CXXMethod_isDefaulted(Cursor))
printf(" (defaulted)");
+ if (clang_CXXMethod_isDeleted(Cursor))
+ printf(" (deleted)");
if (clang_CXXMethod_isStatic(Cursor))
printf(" (static)");
if (clang_CXXMethod_isVirtual(Cursor))