llvm-project/clang/lib
Krasimir Georgiev 55c23a10c2 [clang-format] Ignore UnbreakableTailLength sometimes during breaking
Summary:
This patch fixes an issue where the UnbreakableTailLength would be counted towards
the length of a token during breaking, even though we can break after the token.

For example, this proto text with column limit 20
```
# ColumnLimit: 20  V
foo: {
  bar: {
    bazoo: "aaaaaaa"
  }
}
```
was broken:
```
# ColumnLimit: 20  V
foo: {
  bar: {
    bazoo:
        "aaaaaaa"
  }
}
```
because the 2 closing `}` were counted towards the string literal's `UnbreakableTailLength`.

Reviewers: djasper

Reviewed By: djasper

Subscribers: klimek, cfe-commits

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

llvm-svn: 323188
2018-01-23 11:26:19 +00:00
..
ARCMigrate Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:23:19 +00:00
AST Allow BlockDecl in CXXRecord scope to have no access specifier. 2018-01-19 20:46:19 +00:00
ASTMatchers Add hasTrailingReturn AST matcher 2018-01-22 22:45:23 +00:00
Analysis Handle scoped_lockable objects being returned by value in C++17. 2018-01-11 22:13:57 +00:00
Basic Introduce the "retpoline" x86 mitigation technique for variant #2 of the speculative execution vulnerabilities disclosed today, specifically identified by CVE-2017-5715, "Branch Target Injection", and is one of the two halves to Spectre.. 2018-01-22 22:05:25 +00:00
CodeGen [ARM] Pass _Float16 as int or float 2018-01-23 10:13:49 +00:00
CrossTU [CrossTU] Fix handling of Cross Translation Unit directory path 2017-10-27 12:53:37 +00:00
Driver Link sanitized programs on NetBSD with -lkvm 2018-01-20 01:03:45 +00:00
Edit [clang] Fix format specifiers fixits for nested macros 2017-06-20 20:46:58 +00:00
Format [clang-format] Ignore UnbreakableTailLength sometimes during breaking 2018-01-23 11:26:19 +00:00
Frontend [Frontend] Allow to use PrecompiledPreamble without calling CanReuse 2018-01-18 15:16:53 +00:00
FrontendTool [CMake] Use #cmakedefine01 for CLANG_ENABLE_(ARCMT|OBJC_REWRITER|STATIC_ANALYZER) 2017-10-18 05:21:17 +00:00
Headers [X86] Add rdpid command line option and intrinsics. 2018-01-20 18:36:52 +00:00
Index [Index] Reduce size of SymbolInfo struct. 2017-12-23 19:31:24 +00:00
Lex [CodeComplete] Fix completion in the middle of idents in macro calls 2018-01-22 17:18:28 +00:00
Parse [Parse] Forward brace locations to TypeConstructExpr 2018-01-17 18:53:51 +00:00
Rewrite [analyzer] Better UI in html reports for displaying shortcuts help 2018-01-17 20:06:26 +00:00
Sema [CodeComplete] Omit templated constructors from member list too. 2018-01-22 20:44:47 +00:00
Serialization [PCH] Serialize skipped preprocessor ranges 2018-01-15 19:14:16 +00:00
StaticAnalyzer [analyzer] Protect against dereferencing a null pointer 2018-01-22 20:18:42 +00:00
Tooling [Tooling] Don't deduplicate tool results in the All-TUs executor. 2018-01-17 17:37:11 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00