summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2010-12-30 14:05:53 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2010-12-30 14:05:53 +0000
commit50e4ebaeb8d92f982880b2203cbf6db11f6569fa (patch)
tree1280c809afd110ec7f896735ca7174ed8ecfe588 /clang/include/clang-c
parent3ee05013389e521938b1d33321232b1aef080a5e (diff)
downloadbcm5719-llvm-50e4ebaeb8d92f982880b2203cbf6db11f6569fa.tar.gz
bcm5719-llvm-50e4ebaeb8d92f982880b2203cbf6db11f6569fa.zip
Expose Objective-C type encodings of declarations to libclang users. This also adds a method in ASTContext which encodes FunctionDecls using the same encoding format that is used for Objective-C methods.
llvm-svn: 122639
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 9bf492d5f80..46b429dda24 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -1792,6 +1792,10 @@ CINDEX_LINKAGE CXType clang_getPointeeType(CXType T);
*/
CINDEX_LINKAGE CXCursor clang_getTypeDeclaration(CXType T);
+/**
+ * Returns the Objective-C type encoding for the specified declaration.
+ */
+CINDEX_LINKAGE CXString clang_getDeclObjCTypeEncoding(CXCursor C);
/**
* \brief Retrieve the spelling of a given CXTypeKind.
OpenPOWER on IntegriCloud