llvm-project/clang/unittests/Format
Krasimir Georgiev a71f626eac [clang-format] Use NestedBlockIndent as a 0 column in formatted raw strings
Summary:
This makes the formatter of raw string literals use NestedBlockIndent for
determining the 0 column of the content inside. This makes the formatting use
less horizonal space and fixes a case where two newlines before and after the
raw string prefix were selected instead of a single newline after it:

Before:
```
aaaa = ffff(
    R"pb(
      key: value)pb");
```

After:
```
aaaa = ffff(R"pb(
    key: value)pb");
```

Reviewers: djasper, sammccall

Reviewed By: sammccall

Subscribers: klimek, cfe-commits

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

llvm-svn: 326996
2018-03-08 11:29:27 +00:00
..
CMakeLists.txt [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
CleanupTest.cpp Unittests misc. typos 2018-02-06 13:12:29 +00:00
FormatTest.cpp [clang-format] Improve detection of ObjC for-in statements 2018-03-06 17:21:42 +00:00
FormatTestComments.cpp Fix bug where we wouldn't break columns over the limit. 2017-12-04 08:53:16 +00:00
FormatTestJS.cpp [clang-format] fix handling of consecutive unary operators 2018-03-06 13:56:28 +00:00
FormatTestJava.cpp clang-format: Support formatting Java 8 interface default methods. 2018-01-23 16:30:56 +00:00
FormatTestObjC.cpp [clang-format] Improve detection of ObjC for-in statements 2018-03-06 17:21:42 +00:00
FormatTestProto.cpp [clang-format] Format operator key in protos 2018-02-27 19:07:47 +00:00
FormatTestRawStrings.cpp [clang-format] Use NestedBlockIndent as a 0 column in formatted raw strings 2018-03-08 11:29:27 +00:00
FormatTestSelective.cpp [clang-format] Handle trailing comment sections in import statement lines 2017-05-19 10:34:57 +00:00
FormatTestTextProto.cpp [clang-format] Break consecutive string literals in text protos 2018-03-07 21:30:38 +00:00
FormatTestUtils.h clang-format: Add preprocessor directive indentation 2017-08-30 14:34:57 +00:00
NamespaceEndCommentsFixerTest.cpp clang-format: fix block OpeningLineIndex around preprocessor 2017-07-28 07:56:14 +00:00
SortImportsTestJS.cpp clang-format: [JS] support default imports. 2017-08-01 15:54:43 +00:00
SortIncludesTest.cpp [clang-format] Add option to group multiple #include blocks when sorting includes 2017-11-27 13:23:45 +00:00
UsingDeclarationsSorterTest.cpp [clang-format] Deduplicate using declarations 2017-11-24 18:00:01 +00:00