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

Anastasiia Lukianenko via llvm-dev llvm-dev at lists.llvm.org
Thu Nov 19 04:40:12 PST 2020


From: Anastasiia Lukianenko <anastasiia_lukianenko at epam.com>

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(-)

-- 
2.17.1



More information about the llvm-dev mailing list