clang-format: Revamp function declaration/definition indentation.
authorDaniel Jasper <djasper@google.com>
Wed, 9 Jul 2014 07:50:33 +0000 (07:50 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 9 Jul 2014 07:50:33 +0000 (07:50 +0000)
commit4355e7f0effc788f1af2b48a531f650e1e40db39
treeac6f8ba9d24bf11533cbc84e7031767f34422d7f
parent696b4a089cde5513973dc8e2cf17684d44e74aa5
clang-format: Revamp function declaration/definition indentation.

Key changes:
- Correctly (well ...) distinguish function declarations and variable
  declarations with ()-initialization.
- Don't indent when breaking function declarations/definitions after the
  return type.
- Indent variable declarations and typedefs when breaking after the
  type.

This fixes llvm.org/PR17999.

llvm-svn: 212591
clang/include/clang/Format/Format.h
clang/lib/Format/ContinuationIndenter.cpp
clang/lib/Format/Format.cpp
clang/lib/Format/FormatToken.h
clang/lib/Format/TokenAnnotator.cpp
clang/lib/Format/TokenAnnotator.h
clang/unittests/Format/FormatTest.cpp