Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang-tidy doesn't work #721

Closed
fabolous005 opened this issue Jan 6, 2025 · 2 comments
Closed

clang-tidy doesn't work #721

fabolous005 opened this issue Jan 6, 2025 · 2 comments

Comments

@fabolous005
Copy link

For some reason my clang-tidy doesn't work.
I have configured like any other linter (which all work) by filetype.

I can see that clang-tidy gets runs but it exits immediately, without reporting lints (which show up when manually calling clang-tidy).
I think this is because it's launched faultily.
Clang-tidy should be launched with the respective filename as argument, is there any way to configure this?
Maybe something like this:

require("lint").linters.clangtidy.args {
	"--quiet",
	"{}"
}
@fabolous005
Copy link
Author

Oh just read the very helpful info for adding own linters...
So i guess the issue is that the shown lints are not parsed correctly, or just don't show up in neovim for some reason.

@mfussenegger
Copy link
Owner

nvim-lint automatically adds the filename to the linter's args if stdin = false and append_fname is absent or false.

As far as I can tell clangtidy works just fine.

Would need a reproduction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants