llvm-project/clang/lib
Krasimir Georgiev 9f5608a862 [clang-format] Fix MatchingOpeningBlockLineIndex computation
Summary:
Computed line index must be relative to the current 'parent' node, and
thus use CurrentLines instead of Lines.

Without this, a child line's MatchingOpeningBlockLineIndex is out of
range of the parent's list of line, which can cause crash or unexpected
behavior if this field is used in childs.

Contributed by @Typz!

Reviewers: krasimir, djasper

Reviewed By: krasimir

Subscribers: cfe-commits, klimek

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

llvm-svn: 303353
2017-05-18 15:16:24 +00:00
..
ARCMigrate [ARCMigrate] When applying changes from remap files, disable the 'adjustRemovals' functionality of EditedSource 2017-04-28 00:25:06 +00:00
AST The constant expression evaluator should examine function arguments for non-constexpr function calls unless the EvalInfo says to stop. 2017-05-17 23:56:54 +00:00
ASTMatchers Add cxxStdInitializerListExpr AST matcher 2017-05-05 21:01:12 +00:00
Analysis Fix PR13910: Don't warn that __builtin_unreachable() is unreachable 2017-04-11 15:36:06 +00:00
Basic [SPARC] Support 'f' and 'e' inline asm constraints. 2017-05-12 16:01:23 +00:00
CodeGen [modules] Switch from inferring owning modules based on source location to 2017-05-18 02:29:20 +00:00
Driver clang-cl: Fix path-based MSVC version detection 2017-05-17 15:27:44 +00:00
Edit [ARCMigrate] When applying changes from remap files, disable the 'adjustRemovals' functionality of EditedSource 2017-04-28 00:25:06 +00:00
Format [clang-format] Fix MatchingOpeningBlockLineIndex computation 2017-05-18 15:16:24 +00:00
Frontend [Frontend] Remove unused TemporaryFiles 2017-05-17 14:51:44 +00:00
FrontendTool unique_ptrify createDriverOptTable 2017-01-13 17:34:15 +00:00
Headers (1) Fixed mismatch in intrinsics names in declarations and in doxygen comments. 2017-05-17 01:46:11 +00:00
Index [index] Record references to class receivers used in property references 2017-05-18 10:43:11 +00:00
Lex [Lexer] Ensure that the token is not an annotation token when 2017-05-17 11:08:36 +00:00
Parse Prune unused \param(s) of clang::Parser::ParseTemplateIdAfterTemplateName() in r302737. [-Wdocumentation] 2017-05-11 02:43:47 +00:00
Rewrite [analyzer] Re-apply r283092, attempt no.4, chunk no.4 (last) 2016-10-07 19:25:10 +00:00
Sema Fix an assertion failure in FormatASTNodeDiagnosticArgument. 2017-05-18 03:02:15 +00:00
Serialization [modules] Switch from inferring owning modules based on source location to 2017-05-18 02:29:20 +00:00
StaticAnalyzer [Statistics] Use the new Statistic::updateMax to atomically calculate a maximum value statistic. 2017-05-18 01:11:52 +00:00
Tooling [tooling] RefactoringCallbacks code cleanup 2017-05-12 00:16:56 +00:00
CMakeLists.txt