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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
bindings/python/tests/cindex/test_cursor.py | ||
---|---|---|
399 ↗ | (On Diff #112020) | Can you add tests for the other AvailabilityKinds? |
Comment Actions
Added test for AvailabilityKind.DEPRECATED. NOT_ACCESSIBLE is never returned by clang_getCursorAvailability but only only used in CodeCompletionResult.
bindings/python/tests/cindex/test_cursor.py | ||
---|---|---|
407 ↗ | (On Diff #116456) | It might be better to use a user-defined function that is explicitly deprecated rather than relying on 3rd party standard includes deprecating things for you. |