diff options
author | Matej Laitl <matej@laitl.cz> | 2020-04-22 19:02:22 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2020-04-23 01:41:22 +0200 |
commit | 2793fd43f23d37462da0f3d1e9359e1877ac3503 (patch) | |
tree | a5aa59d294276afa5633ede62ab552ee19525857 | |
parent | b01630426dec1729fcc6139ce813cea3a1b623a6 (diff) |
Generator docs: add note about clang documentation string options
I believe this should fix #1265.
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -719,6 +719,14 @@ impl Builder { /// implement some processing on comments to work around issues as described /// in [rust-bindgen issue /// #426](https://github.com/rust-lang/rust-bindgen/issues/426). + /// + /// Note that clang by default excludes comments from system headers, pass + /// `-fretain-comments-from-system-headers` as + /// [`clang_arg`][Builder::clang_arg] to include them. It can also be told + /// to process all comments (not just documentation ones) using the + /// `-fparse-all-comments` flag. See [slides on clang comment parsing]( + /// https://llvm.org/devmtg/2012-11/Gribenko_CommentParsing.pdf) for + /// background and examples. pub fn generate_comments(mut self, doit: bool) -> Self { self.options.generate_comments = doit; self |