Skip to content

Correct command line of clang-tidy#69

Open
petersohn wants to merge 1 commit into
maralla:masterfrom
petersohn:master
Open

Correct command line of clang-tidy#69
petersohn wants to merge 1 commit into
maralla:masterfrom
petersohn:master

Conversation

@petersohn

Copy link
Copy Markdown

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

@maralla

maralla commented Mar 20, 2017

Copy link
Copy Markdown
Owner

The arguments after -- should be compilation options.

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

@mistotebe

mistotebe commented Nov 11, 2020

Copy link
Copy Markdown

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