@@ -59,6 +59,16 @@ LLVM_YAML_IS_SEQUENCE_VECTOR(clang::format::FormatStyle::RawStringFormat)
59
59
60
60
namespace llvm {
61
61
namespace yaml {
62
+ template <>
63
+ struct ScalarEnumerationTraits <FormatStyle::BreakBeforeNoexceptSpecifierStyle> {
64
+ static void enumeration (IO &IO,
65
+ FormatStyle::BreakBeforeNoexceptSpecifierStyle &Value) {
66
+ IO.enumCase (Value, " Never" , FormatStyle::BBNSS_Never);
67
+ IO.enumCase (Value, " OnlyWithParen" , FormatStyle::BBNSS_OnlyWithParen);
68
+ IO.enumCase (Value, " Always" , FormatStyle::BBNSS_Always);
69
+ }
70
+ };
71
+
62
72
template <> struct MappingTraits <FormatStyle::AlignConsecutiveStyle> {
63
73
static void enumInput (IO &IO, FormatStyle::AlignConsecutiveStyle &Value) {
64
74
IO.enumCase (Value, " None" ,
@@ -260,6 +270,7 @@ struct ScalarEnumerationTraits<FormatStyle::BreakBeforeInlineASMColonStyle> {
260
270
IO.enumCase (Value, " Always" , FormatStyle::BBIAS_Always);
261
271
}
262
272
};
273
+
263
274
template <>
264
275
struct ScalarEnumerationTraits <FormatStyle::BreakConstructorInitializersStyle> {
265
276
static void
@@ -904,6 +915,8 @@ template <> struct MappingTraits<FormatStyle> {
904
915
Style.AllowAllArgumentsOnNextLine );
905
916
IO.mapOptional (" AllowAllParametersOfDeclarationOnNextLine" ,
906
917
Style.AllowAllParametersOfDeclarationOnNextLine );
918
+ IO.mapOptional (" AllowBreakBeforeNoexceptSpecifier" ,
919
+ Style.AllowBreakBeforeNoexceptSpecifier );
907
920
IO.mapOptional (" AllowShortBlocksOnASingleLine" ,
908
921
Style.AllowShortBlocksOnASingleLine );
909
922
IO.mapOptional (" AllowShortCaseLabelsOnASingleLine" ,
@@ -1448,6 +1461,7 @@ FormatStyle getLLVMStyle(FormatStyle::LanguageKind Language) {
1448
1461
LLVMStyle.BreakBeforeBraces = FormatStyle::BS_Attach;
1449
1462
LLVMStyle.BreakBeforeConceptDeclarations = FormatStyle::BBCDS_Always;
1450
1463
LLVMStyle.BreakBeforeInlineASMColon = FormatStyle::BBIAS_OnlyMultiline;
1464
+ LLVMStyle.AllowBreakBeforeNoexceptSpecifier = FormatStyle::BBNSS_Never;
1451
1465
LLVMStyle.BreakBeforeTernaryOperators = true ;
1452
1466
LLVMStyle.BreakConstructorInitializers = FormatStyle::BCIS_BeforeColon;
1453
1467
LLVMStyle.BreakInheritanceList = FormatStyle::BILS_BeforeColon;
0 commit comments