File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 8
8
- [ Does ` bindgen ` support the C++ Standard Template Library (STL)?] ( #does-bindgen-support-the-c-standard-template-library-stl )
9
9
- [ How to deal with bindgen generated padding fields?] ( #how-to-deal-with-bindgen-generated-padding-fields )
10
10
- [ How to generate bindings for a custom target?] ( #how-to-generate-bindings-for-a-custom-target )
11
+ - [ Why isn't ` bindgen ` generating documentation for system headers?] ( #why-isnt-bindgen-generating-documentation-for-system-headers )
11
12
12
13
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
13
14
@@ -115,3 +116,9 @@ $ bindgen <input_headers> -- --target=armv7a-none-eabi
115
116
```
116
117
If you are using ` bindgen ` as a library, you should call
117
118
` builder.clang_arg("--target=armv7a-none-eabi") ` on your ` builder ` .
119
+
120
+ ### Why isn't ` bindgen ` generating documentation for system headers?
121
+
122
+ By default, Bindgen does not generate documentation for system headers because
123
+ ` libclang ` does not provide this information. To address this, you should call
124
+ ` builder.clang_arg("-fretain-comments-from-system-headers") ` on your ` builder ` .
You can’t perform that action at this time.
0 commit comments