diff options
| author | Ted Kremenek <kremenek@apple.com> | 2010-04-12 21:22:16 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2010-04-12 21:22:16 +0000 |
| commit | 4ed2925b91503b75b2a984a810c95f6ba09ac719 (patch) | |
| tree | 1d590838e1b1c7a1be7c0cbf8e8bab591ca94903 /clang/include/clang-c | |
| parent | 601f6d5b59a0a9e3032ebb7099b926cdcf8837c0 (diff) | |
| download | bcm5719-llvm-4ed2925b91503b75b2a984a810c95f6ba09ac719.tar.gz bcm5719-llvm-4ed2925b91503b75b2a984a810c95f6ba09ac719.zip | |
Add 'clang_getCursorLanguage' to return the "language" of the AST element (e.g., distinguish between C and Objective-C language features). Currently this only returns results for declarations.
llvm-svn: 101070
Diffstat (limited to 'clang/include/clang-c')
| -rw-r--r-- | clang/include/clang-c/Index.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index bfb64817da1..0ea5f2cff5a 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/include/clang-c/Index.h @@ -936,11 +936,26 @@ enum CXLinkageKind { }; /** - * \brief Determine the linkage of the entity referred to be a given cursor. + * \brief Determine the linkage of the entity referred to by a given cursor. */ CINDEX_LINKAGE enum CXLinkageKind clang_getCursorLinkage(CXCursor cursor); /** + * \brief Describe the "language" of the entity referred to by a cursor. + */ +CINDEX_LINKAGE enum CXLanguageKind { + CXLanguage_C, + CXLanguage_ObjC, + CXLanguage_CPlusPlus, + CXLanguage_Invalid +}; + +/** + * \brief Determine the "language" of the entity referred to by a given cursor. + */ +CINDEX_LINKAGE enum CXLanguageKind clang_getCursorLanguage(CXCursor cursor); + +/** * @} */ |

