commit | 442eeb69fddda5166af2d3bceef5f7de7ea18df2 | [log] [tgz] |
---|---|---|
author | Yu Shan <shanyu@google.com> | Tue Apr 19 17:21:06 2022 -0700 |
committer | Yu Shan <shanyu@google.com> | Tue Apr 26 00:55:47 2022 +0000 |
tree | ee2b6938c8e1c8fce21d7687c18a0c1d3b05ef17 | |
parent | 038dfd72eed14e2237539455c8e29bc3f05504f4 [diff] |
Add JSON to .clang-format. Add JSON format support to autofix JSON format. Test: Use autofix for JSON file. Bug: None Change-Id: I524eee023d37233938269c62fb8fe4d943a200b1
Source code for Android Automotive OS.
car_product/ - AAOS product car-builtin-lib/ - A helper library for CarService to access hidden framework APIs car-lib/ - Car API car-lib-module/ - Car API module cpp/ - Native services experimental/ - Experimental Car API and services packages/ - Apps and services for cars service/ - Car service module service-builint - Platform builtin component that runs CarService module tests/ - Tests and sample apps tools/ - Helper scripts
Native (C++) code format is required to be compatible with .clang-format file. The formatter is already integrated to repo
tool. To run manually, use:
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.