[PATCH 0/2] [clang-format] Add new configurations

We are trying to use the clang-format approach as a base for Xen [1]
style formatting.
During the state of testing clang-format with different configurations,
we found that some points regarding the Xen coding style are not
configurable. Therefore, we decided to add them to be able to make a
choice in different cases.

Regards,
Anastasiia

[1] - https://xenproject.org/

Anastasiia Lukianenko (2):
  [clang-format] Add BreakBeforeStructInitialization configuration
  [clang-format] Add BreakBeforeInlineASMColon configuration

clang/include/clang/Format/Format.h | 32 +++++++++++++++++++++++
clang/lib/Format/ContinuationIndenter.cpp | 4 ++-
clang/lib/Format/Format.cpp | 6 +++++
clang/lib/Format/TokenAnnotator.cpp | 3 +++
4 files changed, 44 insertions(+), 1 deletion(-)

If ``true``, struct left brace will be placed after line breaks.
true:
struct new_struct struct_name =
{...};

false:
struct new_struct struct_name = {
...};

Signed-off-by: Anastasiia Lukianenko <anastasiia_lukianenko@epam.com>

If ``true``, colons in ASM parameters will be placed after line breaks.
true:
asm volatile("loooooooooooooooooooooooooooooooooooooooooooooong",
             :
             : val);
false:
asm volatile("loooooooooooooooooooooooooooooooooooooooooooooong",
             : : val);

Signed-off-by: Anastasiia Lukianenko <anastasiia_lukianenko@epam.com>

Hello

Please refer to Developer policy
(http://llvm.org/docs/DeveloperPolicy.html#making-and-submitting-a-patch)
for guidance about patch submission.