vscode-clang-tidy icon indicating copy to clipboard operation
vscode-clang-tidy copied to clipboard

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

Open shaun-cox opened this issue 3 years ago • 1 comments

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!

shaun-cox avatar Apr 22 '21 15:04 shaun-cox

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

Falven avatar May 02 '21 02:05 Falven