CHECK_PARSE("AllowShortFunctionsOnASingleLine: true",\r
AllowShortFunctionsOnASingleLine, FormatStyle::SFS_All);\r
\r
+ Style.AllowShortLambdasOnASingleLine = FormatStyle::SLS_All;\r
+ CHECK_PARSE("AllowShortLambdasOnASingleLine: None",\r
+ AllowShortLambdasOnASingleLine, FormatStyle::SLS_None);\r
+ CHECK_PARSE("AllowShortLambdasOnASingleLine: Empty",\r
+ AllowShortLambdasOnASingleLine, FormatStyle::SLS_Empty);\r
+ CHECK_PARSE("AllowShortLambdasOnASingleLine: Inline",\r
+ AllowShortLambdasOnASingleLine, FormatStyle::SLS_Inline);\r
+ CHECK_PARSE("AllowShortLambdasOnASingleLine: All",\r
+ AllowShortLambdasOnASingleLine, FormatStyle::SLS_All);\r
+ // For backward compatibility:\r
+ CHECK_PARSE("AllowShortLambdasOnASingleLine: false",\r
+ AllowShortLambdasOnASingleLine, FormatStyle::SLS_None);\r
+ CHECK_PARSE("AllowShortLambdasOnASingleLine: true",\r
+ AllowShortLambdasOnASingleLine, FormatStyle::SLS_All);\r
+\r
Style.SpaceAroundPointerQualifiers = FormatStyle::SAPQ_Both;\r
CHECK_PARSE("SpaceAroundPointerQualifiers: Default",\r
SpaceAroundPointerQualifiers, FormatStyle::SAPQ_Default);\r