summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2017-09-13 02:15:09 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2017-09-13 02:15:09 +0000
commit50bc565f3f5731032fd2966347d63ba2a7376b28 (patch)
tree1fd1700317b19e8ee141965c927a842339c599b6 /clang/include/clang-c
parentfeda6a04961dfabb0deed5148a7dd920b7cb1379 (diff)
downloadbcm5719-llvm-50bc565f3f5731032fd2966347d63ba2a7376b28.tar.gz
bcm5719-llvm-50bc565f3f5731032fd2966347d63ba2a7376b28.zip
libclang: expose `clang_getCursorTLSKind`
Introduce the 'TLS Kind' property of variable declarations through libclang. Additionally, provide a Python accessor for it, and test that functionality. Patch by Masud Rahman! llvm-svn: 313111
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 0b0d160bf3a..b5d994783f5 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -2837,6 +2837,22 @@ enum CXLanguageKind {
CINDEX_LINKAGE enum CXLanguageKind clang_getCursorLanguage(CXCursor cursor);
/**
+ * \brief Describe the "thread-local storage (TLS) kind" of the declaration
+ * referred to by a cursor.
+ */
+enum CXTLSKind {
+ CXTLS_None = 0,
+ CXTLS_Dynamic,
+ CXTLS_Static
+};
+
+/**
+ * \brief Determine the "thread-local storage (TLS) kind" of the declaration
+ * referred to by a cursor.
+ */
+CINDEX_LINKAGE enum CXTLSKind clang_getCursorTLSKind(CXCursor cursor);
+
+/**
* \brief Returns the translation unit that a cursor originated from.
*/
CINDEX_LINKAGE CXTranslationUnit clang_Cursor_getTranslationUnit(CXCursor);
OpenPOWER on IntegriCloud