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