This revision was automatically updated to reflect the committed changes.
Closed by commit rL315959: [libclang] Add support for querying cursor
availability (authored by jbcoe).
Changed prior to commit:
https://reviews.llvm.org/D36973?vs=118333=119234#toc
Repository:
rL LLVM
jklaehn marked an inline comment as done.
jklaehn added a comment.
In https://reviews.llvm.org/D36973#893851, @jbcoe wrote:
> LGTM
>
> Would you like me to commit this for you?
Yes, that would be great!
https://reviews.llvm.org/D36973
___
jbcoe accepted this revision.
jbcoe added a comment.
This revision is now accepted and ready to land.
LGTM
Would you like me to commit this for you?
https://reviews.llvm.org/D36973
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
jklaehn updated this revision to Diff 118333.
jklaehn added a comment.
Use user-defined function for test of `AvailabilityKind.DEPRECATED`.
https://reviews.llvm.org/D36973
Files:
bindings/python/clang/cindex.py
bindings/python/tests/cindex/test_cursor.py
Index:
jbcoe added inline comments.
Comment at: bindings/python/tests/cindex/test_cursor.py:407
+# AvailabilityKind.DEPRECATED
+tu = get_tu('#include \n void test(char* s) { std::gets(s); }',
lang='cpp')
+cursor = get_cursor(tu, 'gets')
It might be better
jklaehn updated this revision to Diff 116456.
jklaehn marked an inline comment as done.
jklaehn added a comment.
Added test for `AvailabilityKind.DEPRECATED`. `NOT_ACCESSIBLE` is never
returned by `clang_getCursorAvailability` but only only used in
`CodeCompletionResult`.
jbcoe requested changes to this revision.
jbcoe added inline comments.
This revision now requires changes to proceed.
Comment at: bindings/python/tests/cindex/test_cursor.py:399
+else:
+assert False, "Could not find cursor for deleted constructor"
+
jklaehn created this revision.
jklaehn added a project: clang.
This patch allows checking the availability of cursors through libclang and
clang.cindex (Python).
This e.g. allows to check whether a C++ member function has been marked as
deleted.
https://reviews.llvm.org/D36973
Files: