forked from OSchip/llvm-project
[clang-format] Fix AllowAllConstructorInitializersOnNextLine value
The default value of the now deprecated AllowAllConstructorInitializersOnNextLine was always true regardless of the value of BasedOnStyle. This patch fixes the typo in the code that handles the related backward compatibility.
This commit is contained in:
parent
56e372b56e
commit
170a3c6f7a
|
@ -664,7 +664,7 @@ template <> struct MappingTraits<FormatStyle> {
|
|||
const bool IsGoogleOrChromium = BasedOn.equals_insensitive("google") ||
|
||||
BasedOn.equals_insensitive("chromium");
|
||||
bool OnCurrentLine = IsGoogleOrChromium;
|
||||
bool OnNextLine = IsGoogleOrChromium;
|
||||
bool OnNextLine = true;
|
||||
IO.mapOptional("ConstructorInitializerAllOnOneLineOrOnePerLine",
|
||||
OnCurrentLine);
|
||||
IO.mapOptional("AllowAllConstructorInitializersOnNextLine", OnNextLine);
|
||||
|
|
Loading…
Reference in New Issue