Skip to content

Import .clang-format from InfiniTime and format sources#191

Merged
NeroBurner merged 1 commit intoInfiniTimeOrg:mainfrom
muesli:clang-format
Mar 22, 2026
Merged

Import .clang-format from InfiniTime and format sources#191
NeroBurner merged 1 commit intoInfiniTimeOrg:mainfrom
muesli:clang-format

Conversation

@muesli
Copy link
Contributor

@muesli muesli commented Mar 22, 2026

This should be a non-change from a compiler's perspective.

This should be a non-change from a compiler's perspective.
@NeroBurner
Copy link
Collaborator

Thanks!

How do I invoke clang format? and can I have a followup PR with a clang format check job in CI? pretty please 😁

@muesli
Copy link
Contributor Author

muesli commented Mar 22, 2026

How do I invoke clang format? and can I have a followup PR with a clang format check job in CI? pretty please 😁

clang-format -i main.cpp (for inline formatting instead of printing to stdout). CI changes coming up, probably in a separate PR.

@NeroBurner
Copy link
Collaborator

found a one-liner in bash to run on whole project (works thanks to your clang ignore file\

# when in InfiniSim root dir
find . -iname '*.h' -o -iname '*.cpp' | xargs clang-format -i

@NeroBurner NeroBurner added the documentation Improvements or additions to documentation label Mar 22, 2026
@NeroBurner NeroBurner merged commit f56f25a into InfiniTimeOrg:main Mar 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants