forked from OSchip/llvm-project
parent
ede9ce1933
commit
ba5b4dc60c
|
@ -206,8 +206,7 @@ public:
|
|||
return Preamble;
|
||||
}
|
||||
|
||||
/// Data that allows us to tell if a file that was used in a preambule was
|
||||
/// changed.
|
||||
/// Data used to determine if a file used in the preamble has been changed.
|
||||
struct PreambleFileHash {
|
||||
/// All files have size set.
|
||||
off_t Size;
|
||||
|
|
|
@ -511,7 +511,7 @@ public:
|
|||
}
|
||||
if (I[1]->First->Type == TT_FunctionLBrace &&
|
||||
Style.BreakBeforeBraces != FormatStyle::BS_Attach) {
|
||||
// Check for Limit <= 2 to accomodate for the " {".
|
||||
// Check for Limit <= 2 to account for the " {".
|
||||
if (Limit <= 2 || (Style.ColumnLimit == 0 && containsMustBreak(TheLine)))
|
||||
return 0;
|
||||
Limit -= 2;
|
||||
|
|
Loading…
Reference in New Issue