llvm-project/clang/lib
Krasimir Georgiev 8b98f5517f [clang-format] text protos: put entries on separate lines if there is a submessage
Summary:
This patch updates clang-format text protos to put entries of a submessage into separate lines if the submessage contains at least two entries and contains at least one submessage entry.

For example, the entries here are kept on separate lines even if putting them on a single line would be under the column limit:
```
message: {
  entry: 1
  submessage: { key: value }
}
```

Messages containing a single submessage or several scalar entries can still be put on one line if they fit:
```
message { submessage { key: value } }
message { x: 1 y: 2 z: 3 }
```

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: klimek, cfe-commits

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

llvm-svn: 334401
2018-06-11 12:53:25 +00:00
..
ARCMigrate Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
AST Move VersionTuple from clang/Basic to llvm/Support 2018-06-11 10:28:04 +00:00
ASTMatchers [ASTMatchers] Introduce a blockDecl matcher for matching block declarations 2018-05-16 22:47:03 +00:00
Analysis [CFG] Fix automatic destructors when a member is bound to a reference. 2018-06-04 18:56:25 +00:00
Basic Move VersionTuple from clang/Basic to llvm/Support 2018-06-11 10:28:04 +00:00
CodeGen [X86] Use target independent masked expandload and compressstore intrinsics to implement expandload/compressstore builtins. 2018-06-10 17:27:05 +00:00
CrossTU [CrossTU] Fix handling of Cross Translation Unit directory path 2017-10-27 12:53:37 +00:00
Driver Move VersionTuple from clang/Basic to llvm/Support 2018-06-11 10:28:04 +00:00
Edit Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Format [clang-format] text protos: put entries on separate lines if there is a submessage 2018-06-11 12:53:25 +00:00
Frontend Move VersionTuple from clang/Basic to llvm/Support 2018-06-11 10:28:04 +00:00
FrontendTool Add a new driver mode to dump compiler feature and extension options. 2018-05-31 13:57:09 +00:00
Headers [X86] Remove masking from dbpsadbw builtins, use select builtin instead. 2018-06-11 06:18:29 +00:00
Index This diff includes changes for supporting the following types. 2018-06-04 16:07:52 +00:00
Lex Fix unused variable warning from r333718 2018-06-01 14:16:18 +00:00
Parse Reapply "[Parse] Use CapturedStmt for @finally on MSVC" 2018-06-08 00:30:00 +00:00
Rewrite Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Sema [X86] Remove masking from dbpsadbw builtins, use select builtin instead. 2018-06-11 06:18:29 +00:00
Serialization Move VersionTuple from clang/Basic to llvm/Support 2018-06-11 10:28:04 +00:00
StaticAnalyzer [analyzer] Clean up the program state map of DanglingInternalBufferChecker. 2018-06-09 21:08:27 +00:00
Tooling Reland "Move #include manipulation code to new lib/Tooling/Inclusions." 2018-06-04 09:04:12 +00:00
CMakeLists.txt