diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-09-01 19:52:22 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-09-01 19:52:22 +0000 |
| commit | a9aa29cf0b171e0046111e99c555250e45b39a3b (patch) | |
| tree | 310c5d35d7163d0c545d037dbfecfb5034209a0f /clang/include/clang-c | |
| parent | 61a312413c82aa23ef63467cde87f6de1ce8724f (diff) | |
| download | bcm5719-llvm-a9aa29cf0b171e0046111e99c555250e45b39a3b.tar.gz bcm5719-llvm-a9aa29cf0b171e0046111e99c555250e45b39a3b.zip | |
Implement libclang support for using declarations. Clang actually uses
three different kinds of AST nodes to represent using declarations:
UsingDecl, UnresolvedUsingValueDecl, and
UnresolvedUsingTypenameDecl. These three are collapsed into a single
cursor kind for using declarations, since libclang clients don't need
the distinction.
Several related changes here:
- Cursor visitation of the three AST nodes for using declarations
- Proper source-range computation for these AST nodes
- Using declarations have no USRs, since they don't actually declare
any entities.
llvm-svn: 112730
Diffstat (limited to 'clang/include/clang-c')
| -rw-r--r-- | clang/include/clang-c/Index.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index 0716f82eaf6..d5e3373b91d 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/include/clang-c/Index.h @@ -998,9 +998,11 @@ enum CXCursorKind { CXCursor_NamespaceAlias = 33, /** \brief A C++ using directive. */ CXCursor_UsingDirective = 34, + /** \brief A using declaration. */ + CXCursor_UsingDeclaration = 35, CXCursor_FirstDecl = CXCursor_UnexposedDecl, - CXCursor_LastDecl = CXCursor_UsingDirective, + CXCursor_LastDecl = CXCursor_UsingDeclaration, /* References */ CXCursor_FirstRef = 40, /* Decl references */ |

