llvm-project/clang/lib/Format
Krasimir Georgiev 8b4bc76a23 [clang-format] Respect BreakBeforeClosingBrace while calculating length
Summary:
This patch makes `getLengthToMatchingParen` respect the `BreakBeforeClosingBrace`
ParenState for matching scope closers. In order to distinguish between paren states
introduced by real vs. fake parens, I've added the token opening the ParensState
to that struct.

Reviewers: djasper

Reviewed By: djasper

Subscribers: klimek, cfe-commits

Differential Revision: https://reviews.llvm.org/D46519

llvm-svn: 331857
2018-05-09 09:02:11 +00:00
..
AffectedRangeManager.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
AffectedRangeManager.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
BreakableToken.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
BreakableToken.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CMakeLists.txt [clang-format] Support sorting using declarations 2017-06-21 12:03:12 +00:00
ContinuationIndenter.cpp [clang-format] Respect BreakBeforeClosingBrace while calculating length 2018-05-09 09:02:11 +00:00
ContinuationIndenter.h [clang-format] Respect BreakBeforeClosingBrace while calculating length 2018-05-09 09:02:11 +00:00
Encoding.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Format.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
FormatInternal.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
FormatToken.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
FormatToken.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
FormatTokenLexer.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
FormatTokenLexer.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
NamespaceEndCommentsFixer.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
NamespaceEndCommentsFixer.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
SortJavaScriptImports.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
SortJavaScriptImports.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
TokenAnalyzer.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
TokenAnalyzer.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
TokenAnnotator.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
TokenAnnotator.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
UnwrappedLineFormatter.cpp [clang-format] Respect BreakBeforeClosingBrace while calculating length 2018-05-09 09:02:11 +00:00
UnwrappedLineFormatter.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
UnwrappedLineParser.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
UnwrappedLineParser.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
UsingDeclarationsSorter.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
UsingDeclarationsSorter.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
WhitespaceManager.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
WhitespaceManager.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00