You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><ahref="#does-bindgen-support-the-c-standard-template-library-stl">Does <code>bindgen</code> support the C++ Standard Template Library (STL)?</a></li>
177
177
<li><ahref="#how-to-deal-with-bindgen-generated-padding-fields">How to deal with bindgen generated padding fields?</a></li>
178
178
<li><ahref="#how-to-generate-bindings-for-a-custom-target">How to generate bindings for a custom target?</a></li>
179
+
<li><ahref="#why-isnt-bindgen-generating-documentation-for-system-headers">Why isn't <code>bindgen</code> generating documentation for system headers?</a></li>
179
180
</ul>
180
181
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
181
182
<h3><aclass="header" href="#why-isnt-bindgen-generating-methods-for-this-allowlisted-class" id="why-isnt-bindgen-generating-methods-for-this-allowlisted-class">Why isn't <code>bindgen</code> generating methods for this allowlisted class?</a></h3>
<p>If you are using <code>bindgen</code> as a library, you should call
259
260
<code>builder.clang_arg("--target=armv7a-none-eabi")</code> on your <code>builder</code>.</p>
261
+
<h3><aclass="header" href="#why-isnt-bindgen-generating-documentation-for-system-headers" id="why-isnt-bindgen-generating-documentation-for-system-headers">Why isn't <code>bindgen</code> generating documentation for system headers?</a></h3>
262
+
<p>By default, Bindgen does not generate documentation for system headers because
263
+
<code>libclang</code> does not provide this information. To address this, you should call
264
+
<code>builder.clang_arg("-fretain-comments-from-system-headers")</code> on your <code>builder</code>.</p>
<li><ahref="faq.html#does-bindgen-support-the-c-standard-template-library-stl">Does <code>bindgen</code> support the C++ Standard Template Library (STL)?</a></li>
1612
1612
<li><ahref="faq.html#how-to-deal-with-bindgen-generated-padding-fields">How to deal with bindgen generated padding fields?</a></li>
1613
1613
<li><ahref="faq.html#how-to-generate-bindings-for-a-custom-target">How to generate bindings for a custom target?</a></li>
1614
+
<li><ahref="faq.html#why-isnt-bindgen-generating-documentation-for-system-headers">Why isn't <code>bindgen</code> generating documentation for system headers?</a></li>
1614
1615
</ul>
1615
1616
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
1616
1617
<h3><aclass="header" href="#why-isnt-bindgen-generating-methods-for-this-allowlisted-class" id="why-isnt-bindgen-generating-methods-for-this-allowlisted-class">Why isn't <code>bindgen</code> generating methods for this allowlisted class?</a></h3>
<p>If you are using <code>bindgen</code> as a library, you should call
1694
1695
<code>builder.clang_arg("--target=armv7a-none-eabi")</code> on your <code>builder</code>.</p>
1696
+
<h3><aclass="header" href="#why-isnt-bindgen-generating-documentation-for-system-headers" id="why-isnt-bindgen-generating-documentation-for-system-headers">Why isn't <code>bindgen</code> generating documentation for system headers?</a></h3>
1697
+
<p>By default, Bindgen does not generate documentation for system headers because
1698
+
<code>libclang</code> does not provide this information. To address this, you should call
1699
+
<code>builder.clang_arg("-fretain-comments-from-system-headers")</code> on your <code>builder</code>.</p>
0 commit comments