]> granicus.if.org Git - clang/commit
clang-format: Format segments of builder-type calls one per line.
authorDaniel Jasper <djasper@google.com>
Tue, 27 Aug 2013 14:24:43 +0000 (14:24 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 27 Aug 2013 14:24:43 +0000 (14:24 +0000)
commitd3fef0fe26da19685bdec6a1bd844505f604d593
tree739983dfa88e24d61670b4732cc0a2aa08553836
parent18062394db459158942ab491a88b9d52a5c0ab0d
clang-format: Format segments of builder-type calls one per line.

This fixes llvm.org/PR14818.

Before:
  return llvm::StringSwitch<Reference::Kind>(name)
             .StartsWith(".eh_frame_hdr", ORDER_EH_FRAMEHDR)
             .StartsWith(".eh_frame", ORDER_EH_FRAME)
             .StartsWith(".init", ORDER_INIT).StartsWith(".fini", ORDER_FINI)
             .StartsWith(".hash", ORDER_HASH).Default(ORDER_TEXT);

After:
  return llvm::StringSwitch<Reference::Kind>(name)
             .StartsWith(".eh_frame_hdr", ORDER_EH_FRAMEHDR)
             .StartsWith(".eh_frame", ORDER_EH_FRAME)
             .StartsWith(".init", ORDER_INIT)
             .StartsWith(".fini", ORDER_FINI)
             .StartsWith(".hash", ORDER_HASH)
             .Default(ORDER_TEXT);

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189353 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/ContinuationIndenter.cpp
lib/Format/ContinuationIndenter.h
lib/Format/FormatToken.h
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp