diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-12-07 20:44:12 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-12-07 20:44:12 +0000 |
commit | 838d3c23204f52ae27a9f5e9a254238a7ac5d41b (patch) | |
tree | eda222d7d823375ede9ecc44d0362a836a28a280 /include/clang-c | |
parent | b39c5b4ddc9dcc7d9845c6c637e03e83302f8538 (diff) |
[libclang] Introduce CXIdxEntityLanguage that indicates the language
of an indexed entity.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146067 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang-c')
-rw-r--r-- | include/clang-c/Index.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index 52390217b0..5d1e19ead0 100644 --- a/include/clang-c/Index.h +++ b/include/clang-c/Index.h @@ -4134,11 +4134,17 @@ typedef enum { CXIdxEntity_CXXConstructor = 22, CXIdxEntity_CXXDestructor = 23, CXIdxEntity_CXXConversionFunction = 24, - CXIdxEntity_CXXTypeAlias = 25, - CXIdxEntity_CXXInstanceVariable = 26 + CXIdxEntity_CXXTypeAlias = 25 } CXIdxEntityKind; +typedef enum { + CXIdxEntityLang_None = 0, + CXIdxEntityLang_C = 1, + CXIdxEntityLang_ObjC = 2, + CXIdxEntityLang_CXX = 3 +} CXIdxEntityLanguage; + /** * \brief Extra C++ template information for an entity. This can apply to: * CXIdxEntity_Function @@ -4159,6 +4165,7 @@ typedef enum { typedef struct { CXIdxEntityKind kind; CXIdxEntityCXXTemplateKind templateKind; + CXIdxEntityLanguage lang; const char *name; const char *USR; CXCursor cursor; |