* copy changes from #125
* try running sh script check_format.sh & check_copyright.sh in linting.yml
* add test file and add more logging to check_format.sh for testing
* test ci with unformatted example.cpp file
* run precommit hook on all files
* try specific version of clang-format
* modify check_format.sh to use clang-format
* remove example.cpp and additional logging
* use clang-format-18
* Add missing sudo command to dependencies installation in linting.yml
* use clang-format 18 for precommit-hooks
* revert changes to check_format.sh
* use check_format.sh in ci
* add GIT_CLANG_FORMAT as env variable for script
* fetch all branches in linting.yml
* fix lint error
* add all_files flag to check_format.sh so runs on all files
* Simplify argument parsing for `--all-files` and source commit.
---------
Co-authored-by: Mustaballer <mus2003.abdul@gmai.com>