From 50e4ebaeb8d92f982880b2203cbf6db11f6569fa Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Thu, 30 Dec 2010 14:05:53 +0000 Subject: 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 --- clang/include/clang-c/Index.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/include/clang-c') 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. -- cgit v1.2.3