validator.vim
validator.vim copied to clipboard
Correct command line of clang-tidy
The command line should be clang-tidy <options> -- filename, not clang-tidy filename -- <options>.
The arguments after -- should be compilation options.
http://clang.llvm.org/extra/clang-tidy/#using-clang-tidy
Yes, they are compilation options, not clang-tidy options. (clang-tidy --tidy-options source.file -- compilation_options), also running clang-tidy from /tmp means it can't use its own configuration files nor compile_commands.json in the current working directory.