diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2021-01-02 21:13:33 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2021-01-02 21:13:33 +0000 |
commit | 1de062e1e530408f5a06466742b26722c230c024 (patch) | |
tree | bf2beb8362ad464e07f3691864f6ebd060a4b154 /clang/lib/Format/WhitespaceManager.cpp | |
parent | 30078f49665261b45a7cebc2f05a5206301e29a6 (diff) |
Vendor import of llvm-project branch release/11.xvendor/llvm-project/llvmorg-11.0.1-rc2-0-g43ff75f2c3fvendor/llvm-project/llvmorg-11.0.1-0-g43ff75f2c3fevendor/llvm-project/release-11.x
llvmorg-11.0.1-rc2-0-g43ff75f2c3f (aka 11.0.1 rc2).
Diffstat (limited to 'clang/lib/Format/WhitespaceManager.cpp')
-rw-r--r-- | clang/lib/Format/WhitespaceManager.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/clang/lib/Format/WhitespaceManager.cpp b/clang/lib/Format/WhitespaceManager.cpp index 32e0b685ea0f..3a265bd09168 100644 --- a/clang/lib/Format/WhitespaceManager.cpp +++ b/clang/lib/Format/WhitespaceManager.cpp @@ -411,11 +411,9 @@ static unsigned AlignTokens(const FormatStyle &Style, F &&Matches, if (Changes[i].NewlinesBefore != 0) { CommasBeforeMatch = 0; EndOfSequence = i; - // If there is a blank line, there is a forced-align-break (eg, - // preprocessor), or if the last line didn't contain any matching token, - // the sequence ends here. - if (Changes[i].NewlinesBefore > 1 || - Changes[i].Tok->MustBreakAlignBefore || !FoundMatchOnLine) + // If there is a blank line, or if the last line didn't contain any + // matching token, the sequence ends here. + if (Changes[i].NewlinesBefore > 1 || !FoundMatchOnLine) AlignCurrentSequence(); FoundMatchOnLine = false; @@ -726,8 +724,6 @@ void WhitespaceManager::alignTrailingComments() { if (Changes[i].StartOfBlockComment) continue; Newlines += Changes[i].NewlinesBefore; - if (Changes[i].Tok->MustBreakAlignBefore) - BreakBeforeNext = true; if (!Changes[i].IsTrailingComment) continue; |