Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang-tidy: for the -p option: may not occur within a group! #58

Open
qawiretu opened this issue Mar 1, 2023 · 1 comment
Open

clang-tidy: for the -p option: may not occur within a group! #58

qawiretu opened this issue Mar 1, 2023 · 1 comment

Comments

@qawiretu
Copy link

qawiretu commented Mar 1, 2023

Hi, I am trying to use the clang-tidy hook.
my .pre-commit-config.yaml looks something like:
`repos:

Notice the args. I specify the path to the database.

When trying to run, I get:
clang-tidy: for the -p option: may not occur within a group! error: clang-tidy: Unknown command line argument '-p build/meson'. Try: 'clang-tidy --help' clang-tidy: Did you mean '-p'?

Thank you for your help

@brianwatersmanna
Copy link

Use the following:

repo: https://github.com/pocc/pre-commit-hooks
rev: master
hooks:
    - id: clang-tidy
      args: [-p=some/folder]

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

No branches or pull requests

2 participants