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

can I add few more arguments for clang-format and clang-tidy? #50

Closed
sangshuduo opened this issue Oct 14, 2022 · 2 comments
Closed

can I add few more arguments for clang-format and clang-tidy? #50

sangshuduo opened this issue Oct 14, 2022 · 2 comments

Comments

@sangshuduo
Copy link

I tried to look for answers from early issues but was still confused if it was possible or impossible or on the to-do list.
I think both clang-format and clang-tidy usually need multiple arguments for customization.
Sorry if I missed any critical document already described it.

@gsmithufl
Copy link

gsmithufl commented Jan 20, 2023

For clang-format, with a .clang-format file in the base of your repo:

  - repo: https://github.com/pocc/pre-commit-hooks
    rev: v1.3.5
    hooks:
      - id: clang-format
        args: [-i, --style=file]

@sangshuduo
Copy link
Author

For clang-format, with a .clang-format file in the base of your repo:

  - repo: https://github.com/pocc/pre-commit-hooks
    rev: v1.3.5
    hooks:
      - id: clang-format
        args: [-i, --style=file]

Thanks for your reply. I will try it.

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