This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Indent the same amount a sequence of string literals
AbandonedPublic

Authored by krasimir on Mar 10 2017, 6:16 AM.

Details

Reviewers
djasper
Summary

Currently clang-format indents the second in a sequence of string literals:
Code before:

"line 1"
    "line 2";

This is undesirable however, since the second string literal might have been
introduced as a result of string breaking during a previous clang-format run.
This patch makes clang-format to not indent the second and next string literals.
Code after:

"line 1"
"line 2"

Event Timeline

krasimir created this revision.Mar 10 2017, 6:16 AM
krasimir edited the summary of this revision. (Show Details)Mar 10 2017, 6:18 AM
krasimir added a reviewer: djasper.
krasimir added a subscriber: cfe-commits.
krasimir abandoned this revision.Mar 10 2017, 6:51 AM

this is nonsense