[PATCH] D36973: [libclang] Add support for querying cursor availability
Jonathan B Coe via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 25 08:11:44 PDT 2017
jbcoe added inline comments.
================
Comment at: bindings/python/tests/cindex/test_cursor.py:407
+ # AvailabilityKind.DEPRECATED
+ tu = get_tu('#include <cstdio>\n void test(char* s) { std::gets(s); }', lang='cpp')
+ cursor = get_cursor(tu, 'gets')
----------------
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.
https://reviews.llvm.org/D36973
More information about the cfe-commits
mailing list