Skip to content

Commit 18d0c7c

Browse files
committed
Add IncludeAttributedTypes parse option
1 parent 8903264 commit 18d0c7c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ bitflags = "1.0.3"
5050
cexpr = "0.6"
5151
# This kinda sucks: https://github.com/rust-lang/cargo/issues/1982
5252
clap = { version = "2", optional = true }
53-
clang-sys = { version = "1", features = ["clang_6_0"] }
53+
clang-sys = { version = "1", features = ["clang_8_0"] }
5454
lazycell = "1"
5555
lazy_static = "1"
5656
peeking_take_while = "0.1.2"

src/ir/context.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,8 @@ impl BindgenContext {
523523
let index = clang::Index::new(false, true);
524524

525525
let parse_options =
526-
clang_sys::CXTranslationUnit_DetailedPreprocessingRecord;
526+
clang_sys::CXTranslationUnit_DetailedPreprocessingRecord |
527+
clang_sys::CXTranslationUnit_IncludeAttributedTypes;
527528

528529
let translation_unit = {
529530
let _t =

0 commit comments

Comments
 (0)