gemma.cpp
gemma.cpp copied to clipboard
Add clang-tidy, fix narrowing issues, fix constness
- introduce clang-tidy into codebase
- rectify narrowing issues by adjusting type conversions appropriately to prevent potential data loss or undefined behavior
- Review the codebase to identify areas where const correctness can be improved.
unfortunately I did not find tests in repo to check.
This looks pretty good. @jan-wassenberg if this looks alright to you we can probably go ahead and merge.
Looks good to me as well, thanks for adding the StaticCast :) Just one more small suggestion, then we're good to go. Or let me know if you'd prefer we make this change.