summaryrefslogtreecommitdiffstats
path: root/clang/bindings/python
diff options
context:
space:
mode:
authorEmilio Cobos Alvarez <emilio@crisal.io>2019-02-25 21:24:52 +0000
committerEmilio Cobos Alvarez <emilio@crisal.io>2019-02-25 21:24:52 +0000
commit0a3fe502e6451941eaebc9911a4c7043334b7fb4 (patch)
treee8923415097e62492891164d9aac43a378b67398 /clang/bindings/python
parent76004da1c91205df751e4d46e8b7a0224a00be8c (diff)
downloadbcm5719-llvm-0a3fe502e6451941eaebc9911a4c7043334b7fb4.tar.gz
bcm5719-llvm-0a3fe502e6451941eaebc9911a4c7043334b7fb4.zip
[libclang] Expose warn_unused and warn_unused_result attributes.
This is helpful to properly detect them, and fixing issues like https://github.com/rust-lang/rust-bindgen/issues/1518. Differential Revision: https://reviews.llvm.org/D58570 llvm-svn: 354824
Diffstat (limited to 'clang/bindings/python')
-rw-r--r--clang/bindings/python/clang/cindex.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/bindings/python/clang/cindex.py b/clang/bindings/python/clang/cindex.py
index 50e6f0e5b64..d9684db1751 100644
--- a/clang/bindings/python/clang/cindex.py
+++ b/clang/bindings/python/clang/cindex.py
@@ -1343,6 +1343,8 @@ CursorKind.VISIBILITY_ATTR = CursorKind(417)
CursorKind.DLLEXPORT_ATTR = CursorKind(418)
CursorKind.DLLIMPORT_ATTR = CursorKind(419)
CursorKind.CONVERGENT_ATTR = CursorKind(438)
+CursorKind.WARN_UNUSED_ATTR = CursorKind(439)
+CursorKind.WARN_UNUSED_RESULT_ATTR = CursorKind(440)
###
# Preprocessing
OpenPOWER on IntegriCloud