You are not logged in.

#1 2019-01-27 03:45:49

Kirill Bugaev
Member
Registered: 2018-08-03
Posts: 173

[solved] vim plugin ALE checks syntax wrong

I write program on C and define variable of ssize_t type which is defined in stdio.h. ALE vim plugin marks it as mistake with message "unknown type name 'ssize_t'; did you mean 'size_t'?". Program is compiled successfully by gcc. ALE is configured by default.
I know that some guys on this forum use ALE. May be you will help me configure it correctly?
UPD: clang linter produce this error message. Probably it doesn't follow stdio.h header. I have tried to

let g:ale_c_clang_options = '-std=c11 -Wall -I/usr/include'`

Result is the same.
UPD2: I have changed linter and error message disappears.

let g:ale_linters = {'c': ['clangtidy']}

Last edited by Kirill Bugaev (2019-01-27 12:42:52)

Offline

Board footer

Powered by FluxBB