summaryrefslogtreecommitdiff
path: root/src/clangll.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-07-01 07:30:46 -0700
committerGitHub <noreply@github.com>2016-07-01 07:30:46 -0700
commit6f73db950a6ab09a2598a3e2b6f55d2735ec457d (patch)
tree823f99b07727fd143f09de0d171deab43de84a2c /src/clangll.rs
parent7726d5a18a0d7a6ffb3db4350905ce75e1b1e6d3 (diff)
parent9309411d608fbb5e09815aaa270dcf4dcbb535dc (diff)
Auto merge of #6 - servo:add-elab, r=emilio
Add support for elaborated types. Fixes #1.
Diffstat (limited to 'src/clangll.rs')
-rw-r--r--src/clangll.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/clangll.rs b/src/clangll.rs
index dd836694..b94356bc 100644
--- a/src/clangll.rs
+++ b/src/clangll.rs
@@ -408,6 +408,10 @@ pub const CXType_IncompleteArray: c_uint = 114;
pub const CXType_VariableArray: c_uint = 115;
pub const CXType_DependentSizedArray: c_uint = 116;
pub const CXType_MemberPointer: c_uint = 117;
+#[cfg(not(feature="llvm_stable"))]
+pub const CXType_Auto: c_uint = 118;
+#[cfg(not(feature="llvm_stable"))]
+pub const CXType_Elaborated: c_uint = 119;
pub type Enum_CXCallingConv = c_uint;
pub const CXCallingConv_Default: c_uint = 0;
pub const CXCallingConv_C: c_uint = 1;
@@ -1108,6 +1112,8 @@ extern "C" {
pub fn clang_Type_getNumTemplateArguments(T: CXType) -> c_int;
pub fn clang_Type_getTemplateArgumentAsType(T: CXType, i: c_int) ->
CXType;
+ #[cfg(not(feature="llvm_stable"))]
+ pub fn clang_Type_getNamedType(CT: CXType) -> CXType;
pub fn clang_Cursor_isBitField(C: CXCursor) -> c_uint;
#[cfg(not(feature="llvm_stable"))]
pub fn clang_Cursor_isFunctionInlined(C: CXCursor) -> c_uint;