summaryrefslogtreecommitdiffstats
path: root/.clang-format (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add add_slot_suffix function.Yifan Hong2020-05-081-0/+1
| | | | | | | | | This function appends androidboot.slot_suffix to the value of the argument. Test: apply update Bug: 153581609 Change-Id: I28a4047b5f2051acc039084f65a71deb492d9dcb
* Document the clang-format usage.Tao Bao2018-05-101-0/+30
| | | | | | | | | `repo upload` and `git clang-format` may give slightly different results, because they may trigger different `clang-format` binaries. Document the setup to get consistent formatting results. Test: N/A Change-Id: I927dd25c7a6dd51be4812d5b3857a4b08c5a3f81
* clang-format: Remove the override of PenaltyExcessCharacter.Tao Bao2017-09-271-1/+0
| | | | | | | | | | | | | | | | | So it falls back (from 32) to the default value in Google style: PenaltyExcessCharacter: 1000000 This way it no longer allows lines exceeding the 100-char limit. const char* x[] = { "long enough so that the line has 101 chars", nullptr }; would become const char* x[] = { "long enough so that the line has 101 chars", nullptr }; Test: clang-format the line above. Change-Id: If578dbdae55d6d81f5e47889890e2afa12b4199a
* clang-format: Adjust short functions / if settings.Tao Bao2016-12-131-1/+2
| | | | | | | | | | | | | http://clang.llvm.org/docs/ClangFormatStyleOptions.html AllowShortFunctionsOnASingleLine: Empty Empty functions like "int f() {}" can be put on a single line. AllowShortIfStatementsOnASingleLine: true If true, "if (a) return;" can be put on a single line. Test: N/A Change-Id: Ia4f411a958235ab18d16972f2c9d0f55b645b4ba
* Add .clang-format style file.Tao Bao2016-11-071-0/+14
The file is forked from bionic project. It's mostly in Google style, with some tweaks (e.g. 100 column limit). New CLs can be formatted with `git clang-format --style=file`. Test: N/A Change-Id: I6fbd0ab851c03aa6de9987777c7da8cdca8964ed