summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-31 23:48:11 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-31 23:48:11 +0000
commita89314e396bda8b7c0f9b3e7a9d9a014b7beef0c (patch)
tree4cc7ea5e8e28aa730b5b46dbf8b73593e39684f7 /clang/include/clang-c
parent52bd0dc3bb7d3e1a30c38d3ec7e5c33e49ff3080 (diff)
downloadbcm5719-llvm-a89314e396bda8b7c0f9b3e7a9d9a014b7beef0c.tar.gz
bcm5719-llvm-a89314e396bda8b7c0f9b3e7a9d9a014b7beef0c.zip
Add libclang support for namespace aliases (visitation + USRs) along
with a new cursor kind for a reference to a namespace. There's still some oddities in the source location information for NamespaceAliasDecl that I'll address with a separate commit, so the source locations displayed in the load-namespaces.cpp test will change. llvm-svn: 112676
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 404d7aa5140..bbe9a4de448 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -994,9 +994,10 @@ enum CXCursorKind {
CXCursor_ClassTemplate = 31,
/** \brief A C++ class template partial specialization. */
CXCursor_ClassTemplatePartialSpecialization = 32,
-
+ /** \brief A C++ namespace alias declaration. */
+ CXCursor_NamespaceAlias = 33,
CXCursor_FirstDecl = CXCursor_UnexposedDecl,
- CXCursor_LastDecl = CXCursor_ClassTemplatePartialSpecialization,
+ CXCursor_LastDecl = CXCursor_NamespaceAlias,
/* References */
CXCursor_FirstRef = 40, /* Decl references */
@@ -1025,7 +1026,11 @@ enum CXCursorKind {
* template parameter.
*/
CXCursor_TemplateRef = 45,
- CXCursor_LastRef = CXCursor_TemplateRef,
+ /**
+ * \brief A reference to a namespace or namespace alias.
+ */
+ CXCursor_NamespaceRef = 46,
+ CXCursor_LastRef = CXCursor_NamespaceRef,
/* Error conditions */
CXCursor_FirstInvalid = 70,
OpenPOWER on IntegriCloud