]> granicus.if.org Git - clang/commit
clang-format: introduce InlineOnly short function style
authorFrancois Ferrand <thetypz@gmail.com>
Wed, 21 Jun 2017 13:56:02 +0000 (13:56 +0000)
committerFrancois Ferrand <thetypz@gmail.com>
Wed, 21 Jun 2017 13:56:02 +0000 (13:56 +0000)
commit100ecde90ef26ee81763214d5fb335415ffc2b53
tree6a22d589c3ae044ec3b58fab417678eed69a949a
parent4a8ecfcda38f13f785093ebac220c85a62c3a944
clang-format: introduce InlineOnly short function style

Summary:
This is the same as Inline, except it does not imply all empty
functions are merged: with this style, empty functions are merged only
if they also match the 'inline' criteria (i.e. defined in a class).

This is helpful to avoid inlining functions in implementations files.

Reviewers: djasper, krasimir

Reviewed By: djasper

Subscribers: klimek, rengolin, cfe-commits

Differential Revision: https://reviews.llvm.org/D34399

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