Disabling invalid case style warnings

589 views
Skip to first unread message

Uday Reddy B

unread,
Jun 10, 2020, 6:36:44 AM6/10/20
to ycm-users
Hi all,

After a recent upgrade and switching over to clangd based ycm, I now see these readability-identifier-naming warnings (pasted below). These appear to be from clang-tidy, and I couldn't tell by searching the ycm README.md as to how to disable these: there isn't a reference to clang-tidy on identifier naming there, and this isn't a clang compile flag adjustable from ycm_extra_conf. Thanks!

--
 Invalid case style for variable 'r_k' (fix available) [readability-identifier-naming]
--

Clang version: clang version 10.0.0 (https://github.com/ycm-core/llvm 038587147cf2f97d1c3e677042f69560c65b5bea)

- Uday

Ben Jackson

unread,
Jun 11, 2020, 4:37:53 AM6/11/20
to ycm-users
Clangd will read your `.clang-tidy` if you have one.

there is a command line flag you can pass to clangd to tell it not to run clang-tidy checks, but i would suggest if you have a clang-tidy file and it's not correct....

Uday Reddy B

unread,
Jun 21, 2020, 7:23:32 AM6/21/20
to Ben Jackson, ycm-users

Thanks very much! - there was a .clang-tidy which had that flag which clangd was reading. Could the .clang-tidy support and the flag to pass to disable clang-tidy checks be mentioned somewhere in the README?

- Uday

--
You received this message because you are subscribed to the Google Groups "ycm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ycm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ycm-users/7dbc8909-91b0-4f50-8790-2fa888bcc479o%40googlegroups.com.

Ben Jackson

unread,
Jun 21, 2020, 7:59:04 AM6/21/20
to Uday Reddy B, ycm-users
I don’t think that’s necessary as users can read clangd.github.io

> On 21 Jun 2020, at 12:23, Uday Reddy B <uday...@gmail.com> wrote:
>
Reply all
Reply to author
Forward
0 new messages