1 // bindgen-flags: --enable-cxx-namespaces 2 3 /** 4 * This is a multi-line doc comment. 5 * 6 * This class is really really interesting, look! 7 */ 8 class Foo { 9 /** 10 * This nested class is also a multi-line doc comment. 11 * 12 * This class is not so interesting, but worth a bit of docs too! 13 */ 14 class Bar { }; 15 }; 16 17 namespace test { 18 /** 19 * I'm in a namespace, and thus I may be on a rust module, most of the time. 20 * My documentation is pretty extensive, I guess. 21 */ 22 class Baz { 23 /** 24 * This member is plain awesome, just amazing. 25 * 26 * It also has super-extensive docs, with even a nice ascii-art diagram. 27 * 28 * +------+ +-------+ 29 * | foo | ----> | bar | 30 * +------+ +-------+ 31 */ 32 int member; 33 }; 34 35 inline namespace foobiedoobie { 36 /** 37 * I'm in an inline namespace, and as such I shouldn't get generated inside 38 * a rust module, except when the relevant option is specified. Also, this 39 * comment shouldn't be misaligned. 40 */ 41 class InInlineNS { 42 }; 43 } 44 45 /**/ 46 class Bazz {}; 47 } 48