Yavor Goulishev | 9c08e84 | 2020-04-29 14:03:33 -0700 | [diff] [blame] | 1 | # Defines the Chromium style for automatic reformatting. |
| 2 | # http://clang.llvm.org/docs/ClangFormatStyleOptions.html |
| 3 | BasedOnStyle: Chromium |
| 4 | # This defaults to 'Auto'. Explicitly set it for a while, so that |
| 5 | # 'vector<vector<int> >' in existing files gets formatted to |
| 6 | # 'vector<vector<int>>'. ('Auto' means that clang-format will only use |
| 7 | # 'int>>' if the file already contains at least one such instance.) |
| 8 | Standard: Cpp11 |
| 9 | |
| 10 | # Make sure code like: |
| 11 | # IPC_BEGIN_MESSAGE_MAP() |
| 12 | # IPC_MESSAGE_HANDLER(WidgetHostViewHost_Update, OnUpdate) |
| 13 | # IPC_END_MESSAGE_MAP() |
| 14 | # gets correctly indented. |
| 15 | MacroBlockBegin: "^\ |
| 16 | BEGIN_MSG_MAP|\ |
| 17 | BEGIN_MSG_MAP_EX|\ |
| 18 | BEGIN_SAFE_MSG_MAP_EX|\ |
| 19 | CR_BEGIN_MSG_MAP_EX|\ |
| 20 | IPC_BEGIN_MESSAGE_MAP|\ |
| 21 | IPC_BEGIN_MESSAGE_MAP_WITH_PARAM|\ |
| 22 | IPC_PROTOBUF_MESSAGE_TRAITS_BEGIN|\ |
| 23 | IPC_STRUCT_BEGIN|\ |
| 24 | IPC_STRUCT_BEGIN_WITH_PARENT|\ |
| 25 | IPC_STRUCT_TRAITS_BEGIN|\ |
| 26 | POLPARAMS_BEGIN|\ |
| 27 | PPAPI_BEGIN_MESSAGE_MAP$" |
| 28 | MacroBlockEnd: "^\ |
| 29 | CR_END_MSG_MAP|\ |
| 30 | END_MSG_MAP|\ |
| 31 | IPC_END_MESSAGE_MAP|\ |
| 32 | IPC_PROTOBUF_MESSAGE_TRAITS_END|\ |
| 33 | IPC_STRUCT_END|\ |
| 34 | IPC_STRUCT_TRAITS_END|\ |
| 35 | POLPARAMS_END|\ |
| 36 | PPAPI_END_MESSAGE_MAP$" |