mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
refactor(declarations): also generate prototypes for functions in headers
Before this change, "static inline" functions in headers needed to have their function attributes specified in a completely different way. The prototype had to be duplicated, and REAL_FATTR_ had to be used instead of the public FUNC_ATTR_ names. TODO: need a check that a "header.h.inline.generated.h" file is not forgotten when the first "static inline" function with attributes is added to a header (they would just be silently missing).
This commit is contained in:
@@ -895,6 +895,7 @@ def CheckIncludes(filename, lines, error):
|
||||
if (not name.endswith('.h.generated.h') and
|
||||
not name.endswith('/defs.h') and
|
||||
not name.endswith('_defs.h') and
|
||||
not name.endswith('h.inline.generated.h') and
|
||||
not name.endswith('_defs.generated.h') and
|
||||
not name.endswith('_enum.generated.h')):
|
||||
error(filename, i, 'build/include_defs', 5,
|
||||
|
Reference in New Issue
Block a user