aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/CloneFunction.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2017-02-15 17:06:06 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2017-02-15 17:06:06 +0000
commit278904317849409f6967da57d784918d35b28739 (patch)
tree5b92c9785a00e11c6556883f8eda1988ac69a066 /llvm/lib/Transforms/Utils/CloneFunction.cpp
parent0ac6d124cfacebb844d5cc2b9f3b81c2f7b80a16 (diff)
downloadllvm-278904317849409f6967da57d784918d35b28739.zip
llvm-278904317849409f6967da57d784918d35b28739.tar.gz
llvm-278904317849409f6967da57d784918d35b28739.tar.bz2
[clang-tidy] Add check 'modernize-return-braced-init-list'
Summary: Replaces explicit calls to the constructor in a return with a braced initializer list. This way the return type is not needlessly duplicated in the return type and the return statement. ``` Foo bar() { Baz baz; return Foo(baz); } // transforms to: Foo bar() { Baz baz; return {baz}; } ``` Reviewers: hokein, Prazek, aaron.ballman, alexfh Reviewed By: Prazek, aaron.ballman, alexfh Subscribers: malcolm.parsons, mgorny, cfe-commits Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D28768 llvm-svn: 295199
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
0 files changed, 0 insertions, 0 deletions