]> granicus.if.org Git - clang/commit
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)
commit9531410f661ea478c0254e69d7feb4077cd76c62
tree4b12b19b5b166511b2b373c6e3a6e82255a6d484
parent454b3a6f3d17d46d2e5874286aa9cf7c2cbd348f
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 { ... }

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