diff options
author | Etienne Bergeron <etienneb@google.com> | 2016-04-21 17:28:08 +0000 |
---|---|---|
committer | Etienne Bergeron <etienneb@google.com> | 2016-04-21 17:28:08 +0000 |
commit | 1dbd582387a577ee416d22d9cc2dc957926f8035 (patch) | |
tree | ebe510701c347d172d12c7c2b2ef76502fda4e87 /llvm/lib/CodeGen/MachineCopyPropagation.cpp | |
parent | a7a55c4d276523fecd460c503be885348caae502 (diff) | |
download | llvm-1dbd582387a577ee416d22d9cc2dc957926f8035.zip llvm-1dbd582387a577ee416d22d9cc2dc957926f8035.tar.gz llvm-1dbd582387a577ee416d22d9cc2dc957926f8035.tar.bz2 |
[clang-tidy] New checker to detect suspicious string constructor.
Summary:
Checker to validate string constructor parameters.
A common mistake is to swap parameter for the fill-constructor.
```
std::string str('x', 4);
std::string str('4', x);
```
Reviewers: alexfh
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D19146
llvm-svn: 267011
Diffstat (limited to 'llvm/lib/CodeGen/MachineCopyPropagation.cpp')
0 files changed, 0 insertions, 0 deletions