diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-06-13 12:00:58 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2024-07-13 12:30:49 +0200 |
commit | 7dffc36e61c46e6adc92cff5944e876446f3c40e (patch) | |
tree | 99278b5578dbcf5cbe5e53ca158bfc0de5df58d1 /src/clint.py | |
parent | b0f39f3ef5502c037b5bdb0da3d45d312b7fdc2a (diff) | |
download | rneovim-7dffc36e61c46e6adc92cff5944e876446f3c40e.tar.gz rneovim-7dffc36e61c46e6adc92cff5944e876446f3c40e.tar.bz2 rneovim-7dffc36e61c46e6adc92cff5944e876446f3c40e.zip |
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).
Diffstat (limited to 'src/clint.py')
-rwxr-xr-x | src/clint.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/clint.py b/src/clint.py index 051f0e91e5..67185a7340 100755 --- a/src/clint.py +++ b/src/clint.py @@ -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, |