diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-12-15 00:05:00 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-12-15 00:05:00 +0000 |
commit | 643d3ce93c501d19353f2fa578fee3e97f1d1b4b (patch) | |
tree | be1d9ede9d38a2bb26637c8b4104947b531cb93e /include/clang-c | |
parent | 90fd67af4aeec7d1661986dd25eabf924e11a76c (diff) |
[libclang] Indexing API: provide an attribute list inside CXIdxEntityInfo
so that we can access the attributes of an entity for a reference.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146616 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang-c')
-rw-r--r-- | include/clang-c/Index.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index 9da6b2370f..d9d027e2a6 100644 --- a/include/clang-c/Index.h +++ b/include/clang-c/Index.h @@ -4171,19 +4171,6 @@ typedef enum { CXIdxEntity_TemplateSpecialization = 3 } CXIdxEntityCXXTemplateKind; -typedef struct { - CXIdxEntityKind kind; - CXIdxEntityCXXTemplateKind templateKind; - CXIdxEntityLanguage lang; - const char *name; - const char *USR; - CXCursor cursor; -} CXIdxEntityInfo; - -typedef struct { - CXCursor cursor; -} CXIdxContainerInfo; - typedef enum { CXIdxAttr_Unexposed = 0, CXIdxAttr_IBAction = 1, @@ -4198,6 +4185,21 @@ typedef struct { } CXIdxAttrInfo; typedef struct { + CXIdxEntityKind kind; + CXIdxEntityCXXTemplateKind templateKind; + CXIdxEntityLanguage lang; + const char *name; + const char *USR; + CXCursor cursor; + const CXIdxAttrInfo *const *attributes; + unsigned numAttributes; +} CXIdxEntityInfo; + +typedef struct { + CXCursor cursor; +} CXIdxContainerInfo; + +typedef struct { const CXIdxAttrInfo *attrInfo; const CXIdxEntityInfo *objcClass; CXCursor classCursor; |