[PATCH] D28768: [clang-tidy] Add check 'modernize-return-braced-init-list'

Piotr Padlewski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 16 13:25:55 PST 2017


Prazek added inline comments.


================
Comment at: test/clang-tidy/modernize-return-braced-init-list.cpp:95
+}
+
+vector<int> f6() {
----------------
please also add test that contains 
for function
Type foo():

return call(Type());


return OtherType(Type()); // implicit conversion

It would also good to have test that already contain braces :)

return {};


Repository:
  rL LLVM

https://reviews.llvm.org/D28768





More information about the cfe-commits mailing list