Closed jamespeapen closed 1 year ago
https://github.com/madler/zlib/blob/master/zlib.h#L1491
zlib seems to be putting descriptions below function declarations, which seems to be an unusual practice to me (AFAIK most library put those descriptions above declarations).
I don't think this should be fix on ccls side...
madler/zlib is known to have these problems (https://github.com/madler/zlib/issues/633). I agree that modern utilities should not follow its convention...
Observed behavior
The zlib function descriptions seem to be mixed up. This is only for
zlib
as far as I can tell. Other functions fromstd
andRcpp
are showing their correct descriptions. I am showing two examples here.This is the official description for zlib's
gzgets
(https://www.zlib.net/manual.html#Gzip):which is what I get from ccls when I type
gzputc
:Here is
gzputs
from https://nixdoc.net/man-pages/OpenBSD/man3/gzputc.3.html:but I get that hint when I type
gzgets
:My
.ccls
config:Minimal reprex:
Any zlib function can be used in
main
.Expected behavior
LSP hints are the correct ones for zlib functions.
Steps to reproduce
gzgets
orgzputc
and trigger the LSP completion.System information