hanchenye-llvm-project/clang/unittests
Manuel Klimek 48c930cb1e Fix bug where we wouldn't break columns over the limit.
Before, we would not break:
  int a = foo(/* trailing */);
when the end of /* trailing */ was exactly the column limit; the reason
is that block comments can have an unbreakable tail length - in this case
2, for the trailing ");"; we would unconditionally account that when
calculating the column state at the end of the token, but not correctly
add it into the remaining column length before, as we do for string
literals.
The fix is to correctly account the trailing unbreakable sequence length
into our formatting decisions for block comments. Line comments cannot
have a trailing unbreakable sequence, so no change is needed for them.

llvm-svn: 319642
2017-12-04 08:53:16 +00:00
..
AST [ASTImporter] Add unit tests for UsingDecl and UsingShadowDecl 2017-12-03 16:04:07 +00:00
ASTMatchers Add the hasDefinition() AST matcher to match class declarations that also have a definition. 2017-11-29 21:21:51 +00:00
Analysis [analyzer] Performance optimizations for the CloneChecker 2017-08-31 07:10:46 +00:00
Basic [VirtualFileSystem] Support creating directories then adding files inside 2017-11-16 19:34:08 +00:00
CodeGen Reorder. 2017-10-11 04:54:05 +00:00
CrossTU [CrossTU] Fix handling of Cross Translation Unit directory path 2017-10-27 12:53:37 +00:00
Driver Use class to pass information about executable name 2017-08-29 05:22:26 +00:00
Format Fix bug where we wouldn't break columns over the limit. 2017-12-04 08:53:16 +00:00
Frontend Recommit r315738 "[clang-refactor] Apply source replacements" 2017-10-16 17:31:16 +00:00
Lex [Lex] Avoid out-of-bounds dereference in SkipLineComment 2017-10-14 01:18:30 +00:00
Rename [rename] support renaming class member. 2017-10-25 11:54:45 +00:00
Rewrite
Sema
StaticAnalyzer
Tooling Do not perform the analysis based warning if the warnings are ignored 2017-11-23 08:15:22 +00:00
libclang
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00