Files
cbindgen/tests/expectations/both/documentation.compat.c
T
Bruno Kirschner b4b82a500c Preserve empty lines in doc comments.
This required two changes in parallel.

As a first and obvious step it removes a check that skipped emptys
lines during documentation loading, but it was also necessary to
refactore the `get_comment_lines()` utility method as a second step.

This second refactoring was necessary as each line in a doc comment
is trimmed and transformed in its own doc attribute. The attribute
of an empty line therefore contains an empty string as value. If we
now call `lines()` on such an empty string we end up with an empty
iterator as the method is internally configured to ignore trailing
empty lines.
2019-08-03 17:38:59 +02:00

26 lines
529 B
C

#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
/**
* The root of all evil.
*
* But at least it contains some more documentation as someone would expect
* from a simple test case like this.
*
* # Hint
*
* Always ensure that everything is properly documented, even if you feel lazy.
* Sometimes** it is also helpful to include some markdown formatting.
*/
void root(void);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus