llvm-project/clang/lib/Format
Eric Liu 89be047201 Fixed a bug in AnnotatedLine::startsWith when there are comments in the line.
Summary: When there are comments in the line, one token may be checked multiple times.

Reviewers: mprobst, djasper

Subscribers: ioeric, cfe-commits, klimek

Differential Revision: http://reviews.llvm.org/D19106

llvm-svn: 266803
2016-04-19 19:25:33 +00:00
..
BreakableToken.cpp clang-format: clang-format (NFC) 2015-06-17 13:08:06 +00:00
BreakableToken.h Roll-back r250822. 2015-10-20 13:23:58 +00:00
CMakeLists.txt clang-format: Factor out UnwrappedLineFormatter into a separate file. 2014-12-10 19:00:42 +00:00
ContinuationIndenter.cpp clang-format: Slightly weaken AlignAfterOpenBracket=AlwaysBreak. 2016-03-17 12:00:22 +00:00
ContinuationIndenter.h [clang-format] Use in-class initializers to simplify constructor. 2015-06-12 14:39:08 +00:00
Encoding.h Add missing include for StringRef (NFC) 2016-04-18 09:08:59 +00:00
Format.cpp clang-format: Implemented tab usage for continuation and indentation 2016-04-14 14:52:26 +00:00
FormatToken.cpp Revert 266186 as it breaks anything that includes type_traits on some platforms 2016-04-15 18:04:13 +00:00
FormatToken.h clang-format: [JS] do not wrap ES6 imports/exports. 2016-03-22 14:32:20 +00:00
TokenAnnotator.cpp clang-format: Improve heuristics to detect function declarations/definitions. 2016-04-18 11:31:21 +00:00
TokenAnnotator.h Fixed a bug in AnnotatedLine::startsWith when there are comments in the line. 2016-04-19 19:25:33 +00:00
UnwrappedLineFormatter.cpp clang-format: Don't format unrelated nested blocks. 2016-02-29 12:26:20 +00:00
UnwrappedLineFormatter.h clang-format: clang-format (NFC) 2015-06-17 13:08:06 +00:00
UnwrappedLineParser.cpp reuse mustBeJSIdent for interface detection 2016-04-19 18:19:06 +00:00
UnwrappedLineParser.h clang-format: [JS] Handle certain cases of ASI. 2016-03-14 19:21:36 +00:00
WhitespaceManager.cpp clang-format: Implemented tab usage for continuation and indentation 2016-04-14 14:52:26 +00:00
WhitespaceManager.h [clang-format] Fix comment aligning when there are changes within the comment 2016-01-11 16:27:16 +00:00