clang-format: Don't wrap "const" etc. of function declarations.
authorDaniel Jasper <djasper@google.com>
Mon, 17 Feb 2014 07:57:46 +0000 (07:57 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 17 Feb 2014 07:57:46 +0000 (07:57 +0000)
commit5550de684f1d0c97e9dc4d4ef69459c87367ac1d
treee2ae1bd3a0cc727f0bcbfe81ae9bb254279932c5
parent46177baddb323ed471470644e36c2b533b8075f3
clang-format: Don't wrap "const" etc. of function declarations.

Generally people seem to prefer wrapping the first function parameter
over wrapping the trailing tokens "const", "override" and "final". This
does not extend to function-like annotations and probably not to other
non-standard annotations.

Before:
  void someLongFunction(int SomeLongParameter)
      const { ... }

After:
  void someLongFunction(
      int SomeLongParameter) const { ... }

llvm-svn: 201504
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp