diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2017-02-15 17:06:06 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2017-02-15 17:06:06 +0000 |
| commit | 278904317849409f6967da57d784918d35b28739 (patch) | |
| tree | 5b92c9785a00e11c6556883f8eda1988ac69a066 /lldb/unittests/Core/LogTest.cpp | |
| parent | 0ac6d124cfacebb844d5cc2b9f3b81c2f7b80a16 (diff) | |
| download | bcm5719-llvm-278904317849409f6967da57d784918d35b28739.tar.gz bcm5719-llvm-278904317849409f6967da57d784918d35b28739.zip | |
[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 'lldb/unittests/Core/LogTest.cpp')
0 files changed, 0 insertions, 0 deletions

