notskm / vscode-clang-tidy

MIT License
48 stars 26 forks source link

Feature Request: Custom arguments #76

Open cinderblock opened 2 years ago

cinderblock commented 2 years ago

I'm using a custom script to always add some -I built flags when I run clang-tidy.

Unfortunately, I can't use "clang-tidy.executable" setting to use my binary (I'm using node to run a script) because it itself needs some arguments.

Looking into the source code here, I see that the executable setting ultimately gets consumed by child_process.execFile() as the first argument. So I can't use that setting to pass extra args.

Would you consider adding an extra optional setting that are arguments prepended to this list?