diff options
author | Etienne Bergeron <etienneb@google.com> | 2016-03-22 17:39:36 +0000 |
---|---|---|
committer | Etienne Bergeron <etienneb@google.com> | 2016-03-22 17:39:36 +0000 |
commit | 1329b986d2f25e838d4b27b1271da92b6578d5ca (patch) | |
tree | d0ded96ca81dcf5eb42466e832cf3d7ffe4fbe16 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
parent | 909e600abd1e8519352c1b5eabb1a962b911697c (diff) | |
download | bcm5719-llvm-1329b986d2f25e838d4b27b1271da92b6578d5ca.tar.gz bcm5719-llvm-1329b986d2f25e838d4b27b1271da92b6578d5ca.zip |
[clang-tidy] Fix redundant-string-init check with msvc 14 headers.
Summary:
The string constructors are not defined using optional parameters and are not recognized by the redundant-string-init checker.
The following patch fixes the redundant-string-init checker for the Visual Studio 14 headers file.
The matcher now accept both variant (with 1 and 2 parameters).
Also added new unittests.
Similar issue than: [[ http://reviews.llvm.org/D18285 | review ]]
In the xstring.h header, the constructors are defined this way:
```
basic_string(const _Myt& _Right) [...]
basic_string(const _Myt& _Right, const _Alloc& _Al) [...]
```
Reviewers: alexfh, hokein
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D18293
llvm-svn: 264069
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions