Skip to content

Commit 35df1e3

Browse files
committed
fix build and regenerate libclang bindings
1 parent 5c5b0e5 commit 35df1e3

File tree

4 files changed

+177
-176
lines changed

4 files changed

+177
-176
lines changed

clang.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use clangll::*;
1212

1313
// Cursor
1414
pub struct Cursor {
15-
priv x: CXCursor
15+
x: CXCursor
1616
}
1717

1818
pub type CursorVisitor<'s> = 's |c: &Cursor, p: &Cursor| -> Enum_CXChildVisitResult;
@@ -154,7 +154,7 @@ impl Hash for Cursor {
154154

155155
// type
156156
pub struct Type {
157-
priv x: CXType
157+
x: CXType
158158
}
159159

160160
impl Type {
@@ -243,7 +243,7 @@ impl Type {
243243

244244
// SourceLocation
245245
pub struct SourceLocation {
246-
priv x: CXSourceLocation
246+
x: CXSourceLocation
247247
}
248248

249249
impl SourceLocation {
@@ -261,7 +261,7 @@ impl SourceLocation {
261261

262262
// File
263263
pub struct File {
264-
priv x: CXFile
264+
x: CXFile
265265
}
266266

267267
impl File {
@@ -278,7 +278,7 @@ impl File {
278278

279279
// String
280280
pub struct String {
281-
priv x: CXString
281+
x: CXString
282282
}
283283

284284
impl fmt::Show for String {
@@ -292,7 +292,7 @@ impl fmt::Show for String {
292292

293293
// Index
294294
pub struct Index {
295-
priv x: CXIndex
295+
x: CXIndex
296296
}
297297

298298
impl Index {
@@ -315,7 +315,7 @@ impl Index {
315315

316316
// TranslationUnit
317317
pub struct TranslationUnit {
318-
priv x: CXTranslationUnit
318+
x: CXTranslationUnit
319319
}
320320

321321
impl TranslationUnit {
@@ -378,7 +378,7 @@ impl TranslationUnit {
378378

379379
// Diagnostic
380380
pub struct Diagnostic {
381-
priv x: CXDiagnostic
381+
x: CXDiagnostic
382382
}
383383

384384
impl Diagnostic {
@@ -409,7 +409,7 @@ impl Diagnostic {
409409

410410
// UnsavedFile
411411
pub struct UnsavedFile {
412-
priv x: Struct_CXUnsavedFile
412+
x: Struct_CXUnsavedFile
413413
}
414414

415415
pub fn kind_to_str(x: Enum_CXCursorKind) -> &str {

0 commit comments

Comments
 (0)