notskm / vscode-clang-tidy

MIT License
48 stars 26 forks source link

Add clang-tidy.headerFilter to specify --header-filter= parameter when invoking clang-tidy #59

Open shaun-cox opened 3 years ago

shaun-cox commented 3 years ago

I would like to be able to specify the header filter in my .vscode/settings.json file instead of having to hard-code it via HeaderFilterRegex: in the shared .clang-tidy file of our repo. (My local path is different from other peoples local path.)

Would it be possible to add a clang-tidy.headerFilter setting to pass this parameter through when invoking clang-tidy?

Thank you!

Falven commented 3 years ago

Seconded. Need a flag to support passing other flags to the clang-tidy executable, not just headerFilter.