notskm / vscode-clang-tidy

MIT License
49 stars 25 forks source link

how to include extra clang check #66

Open dewrax opened 3 years ago

dewrax commented 3 years ago

I want to include modernize-use-override.AllowOverrideAndFinal = 1 is there a way to add this in checks

notskm commented 3 years ago

I'm not sure how you would do this on the clang-tidy command line, so I'm not sure if my extension supports this. I'll have to look into it when I have time to work on this extension again.

If you're not using a .clang-tidy file, you should be. The extension settings are best used as an override.

dewrax commented 3 years ago

I'm using .clang-tidy file available at the root project directory. Do I have to config anything for the extension to use it or extension automatically detects it and uses it.

notskm commented 3 years ago

If it's in the root of your project, the extension should automatically find it.