]> granicus.if.org Git - clang/commit
clang-format: Always allow break after leading annotations.
authorDaniel Jasper <djasper@google.com>
Mon, 24 Aug 2015 15:10:01 +0000 (15:10 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 24 Aug 2015 15:10:01 +0000 (15:10 +0000)
commit424d6212ab4c0f921979ea65e7475c2dca933373
tree262d40314c2e35a184f7b3a4aeef15fbc14823b9
parentfa82f43900c8ffd21d3ca221f607a295a234c159
clang-format: Always allow break after leading annotations.

Before:
  DEPRECATED("Use NewClass::NewFunction instead.") int OldFunction(
  const string &parameter) {}

Could not be formatted at all, as clang-format would both require and
disallow the break before "int".

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