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 format #947

Open
jjts opened this issue Sep 16, 2024 · 1 comment
Open

clang format #947

jjts opened this issue Sep 16, 2024 · 1 comment

Comments

@jjts
Copy link
Contributor

jjts commented Sep 16, 2024

why do we have that at the root? can it go to py2?

@P-Miranda
Copy link
Contributor

Usually the .clang-format file is in the directory from where the clang-format command is called.
But is also possible to use a .clang-format from other path with the command:

clang-format --style=file:./path/to/config/.clang-format -i <files-to-format>

We can add the .clang-format file to py2 and update the clang-format command executed in py2hwsw/scripts/sw_tools.py accordingly.

This will remove the need to have a .clang-format at the root of every repository,
but also the possibility to have different format styles for each project (which I don't think we need for now).

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