mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-27 21:00:48 +00:00
Add a no-op size_t typedef for the doc parser
Clang's documentation parser, which we use in our documentation system does not report any comments for functions which use size_t as a type. The root cause is buried somewhere in libclang but we can work around it by defining the type ourselves. This typedef makes sure that libclang sees it and that we do not change its size.
This commit is contained in:
parent
2f0450f4d6
commit
9844453611
@ -29,6 +29,14 @@
|
||||
# include <inttypes.h>
|
||||
#endif
|
||||
|
||||
#ifdef DOCURIUM
|
||||
/*
|
||||
* This is so clang's doc parser acknowledges comments on functions
|
||||
* with size_t parameters.
|
||||
*/
|
||||
typedef size_t size_t;
|
||||
#endif
|
||||
|
||||
/** Declare a public function exported for application use. */
|
||||
#if __GNUC__ >= 4
|
||||
# define GIT_EXTERN(type) extern \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user