summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <ecoal95@gmail.com>2016-10-14 14:05:01 +0200
committerEmilio Cobos Álvarez <ecoal95@gmail.com>2016-10-18 15:55:42 +0200
commit9c6aee4856655e464f4b629ec4daabbe80b8912e (patch)
tree579525b1fe08e428ccce3b23f5443e1d13b8f84a
parentb162e9209dd0eaaf84538fc1cb1cdf6bb1d1669f (diff)
clangll: Add missing cursor types.
-rw-r--r--src/clang.rs4
-rw-r--r--src/clangll.rs5
2 files changed, 7 insertions, 2 deletions
diff --git a/src/clang.rs b/src/clang.rs
index e5943b6f..de405c9d 100644
--- a/src/clang.rs
+++ b/src/clang.rs
@@ -1050,7 +1050,9 @@ pub fn kind_to_str(x: Enum_CXCursorKind) -> &'static str {
//CXCursor_FirstPreprocessing => "FirstPreprocessing",
//CXCursor_LastPreprocessing => "LastPreprocessing",
CXCursor_PackedAttr => "PackedAttr",
-
+ CXCursor_ModuleImportDecl => "ModuleImportDecl",
+ CXCursor_TypeAliasTemplateDecl => "TypeAliasTemplateDecl",
+ CXCursor_StaticAssert => "StaticAssert",
_ => "?",
}
}
diff --git a/src/clangll.rs b/src/clangll.rs
index 47f41ff1..272fa574 100644
--- a/src/clangll.rs
+++ b/src/clangll.rs
@@ -313,8 +313,11 @@ pub const CXCursor_InclusionDirective: c_uint = 503;
pub const CXCursor_FirstPreprocessing: c_uint = 500;
pub const CXCursor_LastPreprocessing: c_uint = 503;
pub const CXCursor_ModuleImportDecl: c_uint = 600;
+pub const CXCursor_TypeAliasTemplateDecl: c_uint = 601;
+pub const CXCursor_StaticAssert: c_uint = 602;
pub const CXCursor_FirstExtraDecl: c_uint = 600;
-pub const CXCursor_LastExtraDecl: c_uint = 600;
+pub const CXCursor_LastExtraDecl: c_uint = 602;
+pub const CXCursor_OverloadCandidate: c_uint = 700;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct CXCursor {