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

Jonas Devlieghere via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 16 04:58:22 PST 2017


JDevlieghere added a comment.

In https://reviews.llvm.org/D28768#647206, @malcolm.parsons wrote:

> In https://reviews.llvm.org/D28768#647204, @JDevlieghere wrote:
>
> > I wanted to do that but it seems that the test script hard codes it to C++11, and the `auto` return type is a C++14 feature. Maybe I'm mistaken though, but I didn't manage to get it working, even when appending `-- -std=c++14` to the RUN command. Am I missing something?
>
>
> You need one `--` for check_clang_tidy and one for clang-tidy:
>  `-- -- -std=c++14`


Thanks, I forgot about the extra `--`! :-)


Repository:
  rL LLVM

https://reviews.llvm.org/D28768





More information about the cfe-commits mailing list