Add a clang-format file to for native code.

This is to address a review comment part of b/133193822.
Bug: 133193822

Test: README file
Change-Id: Ib28b47aca55686fb801a71e4c5c51179647495d4
(cherry picked from commit fbde1023fec9ed00fcf3f38f1ec5bec5597222c5)
2 files changed
tree: 7835a60a00d0b09bd58459a3a38dd7a5bb0023c0
  1. car-bugreportd/
  2. car-cluster-logging-renderer/
  3. car-default-input-service/
  4. car-lib/
  5. car-maps-placeholder/
  6. car-systemtest-lib/
  7. car-test-lib/
  8. car-usb-handler/
  9. car_product/
  10. EncryptionRunner/
  11. evs/
  12. FrameworkPackageStubs/
  13. obd2-lib/
  14. procfs-inspector/
  15. service/
  16. tests/
  17. tools/
  18. user/
  19. vehicle-hal-support-lib/
  20. .clang-format
  21. .gitignore
  22. Android.mk
  23. CleanSpec.mk
  24. OWNERS
  25. PREUPLOAD.cfg
  26. README.md
README.md

Native (C++) code format is required to be compatible with .clang-format file. Run

git clang-format --style=file --extension='h,cpp,cc' HEAD~

Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.