summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
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/include/clang-c
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/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 38af8aa6d8b..e6555fae78a 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -32,7 +32,7 @@
* compatible, thus CINDEX_VERSION_MAJOR is expected to remain stable.
*/
#define CINDEX_VERSION_MAJOR 0
-#define CINDEX_VERSION_MINOR 51
+#define CINDEX_VERSION_MINOR 52
#define CINDEX_VERSION_ENCODE(major, minor) ( \
((major) * 10000) \
@@ -2587,7 +2587,9 @@ enum CXCursorKind {
CXCursor_ObjCBoxable = 436,
CXCursor_FlagEnum = 437,
CXCursor_ConvergentAttr = 438,
- CXCursor_LastAttr = CXCursor_ConvergentAttr,
+ CXCursor_WarnUnusedAttr = 439,
+ CXCursor_WarnUnusedResultAttr = 440,
+ CXCursor_LastAttr = CXCursor_WarnUnusedResultAttr,
/* Preprocessing */
CXCursor_PreprocessingDirective = 500,
OpenPOWER on IntegriCloud