Go to file
Jonas Devlieghere 2789043178 [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
2017-02-15 17:06:06 +00:00
clang [index] USR generation: use getTemplateArgs() instead of getTemplateInstantiationArgs() 2017-02-15 16:16:27 +00:00
clang-tools-extra [clang-tidy] Add check 'modernize-return-braced-init-list' 2017-02-15 17:06:06 +00:00
compiler-rt [Compiler-rt][XRAY][MIPS] Support xray on mips/mipsel/mips64/mips64el 2017-02-15 10:54:09 +00:00
debuginfo-tests
libclc Move BufferPtr into the block where it it being used 2017-02-12 21:33:49 +00:00
libcxx Add tests for noexcept functions 2017-02-13 22:44:39 +00:00
libcxxabi Fix couple of test failures when using the LIBCXXABI_SILENT_TERMINATE mode. 2017-02-15 13:43:05 +00:00
libunwind [libunwind][CMake] Use libc++ headers when available 2017-02-15 06:41:57 +00:00
lld [ELF] - Fix relocation-group.test 2017-02-15 09:44:12 +00:00
lldb Refactor log channel registration mechanism 2017-02-15 16:11:59 +00:00
llgo [llgo] Remove support for LLVM attributes 2016-12-06 19:22:04 +00:00
llvm [X86] Regenerate scalar stack reload test 2017-02-15 16:48:45 +00:00
openmp [OpenMP] New Tsan annotations to remove false positive on reduction and barriers 2017-02-15 08:14:22 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [DeLICM] Add Knowledge class. NFC. 2017-02-15 16:59:10 +00:00