summaryrefslogtreecommitdiff
path: root/include/clang-c
diff options
context:
space:
mode:
authorMichael Wu <mwu.code@gmail.com>2018-08-03 05:03:22 +0000
committerMichael Wu <mwu.code@gmail.com>2018-08-03 05:03:22 +0000
commit4042ae53b138dddb400aa62c3668c29075ca9e92 (patch)
treee12f5e44a196dc25f8389f20fe54b261e202f67c /include/clang-c
parentf44b5cff857524a9c91e37b82b4fcc400b85ccf2 (diff)
downloadclang-4042ae53b138dddb400aa62c3668c29075ca9e92.tar.gz
[libclang 5/8] Add support for ObjC attributes without args
Summary: This adds support to libclang for identifying ObjC related attributes that don't take arguments. All attributes but NSObject and NSConsumed are tested. Reviewers: yvvan, jbcoe Reviewed By: yvvan Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D49127 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338813 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang-c')
-rw-r--r--include/clang-c/Index.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h
index 712b1efda1..a0ca0128c8 100644
--- a/include/clang-c/Index.h
+++ b/include/clang-c/Index.h
@@ -2563,7 +2563,24 @@ enum CXCursorKind {
CXCursor_VisibilityAttr = 417,
CXCursor_DLLExport = 418,
CXCursor_DLLImport = 419,
- CXCursor_LastAttr = CXCursor_DLLImport,
+ CXCursor_NSReturnsRetained = 420,
+ CXCursor_NSReturnsNotRetained = 421,
+ CXCursor_NSReturnsAutoreleased = 422,
+ CXCursor_NSConsumesSelf = 423,
+ CXCursor_NSConsumed = 424,
+ CXCursor_ObjCException = 425,
+ CXCursor_ObjCNSObject = 426,
+ CXCursor_ObjCIndependentClass = 427,
+ CXCursor_ObjCPreciseLifetime = 428,
+ CXCursor_ObjCReturnsInnerPointer = 429,
+ CXCursor_ObjCRequiresSuper = 430,
+ CXCursor_ObjCRootClass = 431,
+ CXCursor_ObjCSubclassingRestricted = 432,
+ CXCursor_ObjCExplicitProtocolImpl = 433,
+ CXCursor_ObjCDesignatedInitializer = 434,
+ CXCursor_ObjCRuntimeVisible = 435,
+ CXCursor_ObjCBoxable = 436,
+ CXCursor_LastAttr = CXCursor_ObjCBoxable,
/* Preprocessing */
CXCursor_PreprocessingDirective = 500,