hanchenye-llvm-project/clang/lib
Krasimir Georgiev e518e0bfe9 [clang-format] Fix regression that breaks comments without a comment prefix
Summary:
Consider formatting the following code fragment with column limit 20:
```
{
  // line 1
  // line 2\
  // long long long line
}
```
Before this fix the output is:
```
{
  // line 1
  // line 2\
  // long long
  long line
}
```
This patch fixes a regression that breaks the last comment line without
adding the '//' prefix.

Reviewers: djasper

Reviewed By: djasper

Subscribers: cfe-commits, klimek

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

llvm-svn: 293548
2017-01-30 21:00:01 +00:00
..
ARCMigrate Reapply "IntrusiveRefCntPtr -> std::shared_ptr for CompilerInvocationBase and CodeCompleteConsumer" 2017-01-06 19:49:01 +00:00
AST [AST] Give TemplateArgumentLoc a constexpr ctor. 2017-01-30 18:32:46 +00:00
ASTMatchers Move VariantMatcher's Payload to std::shared_ptr rather than IntrusiveRefCntPtr 2017-01-05 18:51:54 +00:00
Analysis Remove unused 'using' declaration. Found by clang-tidy: misc-unused-using-decls NFC 2017-01-28 13:41:50 +00:00
Basic Prototype of modules codegen 2017-01-30 05:00:26 +00:00
CodeGen [IRGen] Make header standalone. 2017-01-30 15:39:18 +00:00
Driver [windows] [asan] Add linker flag when including "asan_dynamic_runtime_thunk". 2017-01-29 06:03:05 +00:00
Edit Fix problems in "[OpenCL] Enabling the usage of CLK_NULL_QUEUE as compare operand." 2016-12-23 14:55:49 +00:00
Format [clang-format] Fix regression that breaks comments without a comment prefix 2017-01-30 21:00:01 +00:00
Frontend [c-index-test] Provide capability to index module file imports and dump their input files. 2017-01-30 06:05:58 +00:00
FrontendTool unique_ptrify createDriverOptTable 2017-01-13 17:34:15 +00:00
Headers [OpenCL] Diagnose write_only image3d when extension is disabled 2017-01-25 12:18:50 +00:00
Index [index] CMake: add missing reference to clangSerialization library. 2017-01-30 06:48:27 +00:00
Lex Prototype of modules codegen 2017-01-30 05:00:26 +00:00
Parse Support '#pragma clang __debug dump' within C++ classes. 2017-01-28 01:20:57 +00:00
Rewrite [analyzer] Re-apply r283092, attempt no.4, chunk no.4 (last) 2016-10-07 19:25:10 +00:00
Sema Towards P0091R3: parsing support for class template argument deduction in typename-specifiers. 2017-01-30 20:39:26 +00:00
Serialization [c-index-test] Provide capability to index module file imports and dump their input files. 2017-01-30 06:05:58 +00:00
StaticAnalyzer [analyzer] Fix MacOSXAPIChecker fp with static locals seen from nested blocks. 2017-01-25 10:21:45 +00:00
Tooling clang-format: Make GetStyle return Expected<FormatStyle> instead of FormatStyle 2017-01-17 00:12:27 +00:00
CMakeLists.txt