Skip to content

Conversation

@petersohn
Copy link

The command line should be clang-tidy <options> -- filename, not clang-tidy filename -- <options>.

@maralla
Copy link
Owner

maralla commented Mar 20, 2017

The arguments after -- should be compilation options.

http://clang.llvm.org/extra/clang-tidy/#using-clang-tidy

@mistotebe
Copy link

mistotebe commented Nov 11, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants