summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorEtienne Bergeron <etienneb@google.com>2016-03-22 17:39:36 +0000
committerEtienne Bergeron <etienneb@google.com>2016-03-22 17:39:36 +0000
commit1329b986d2f25e838d4b27b1271da92b6578d5ca (patch)
treed0ded96ca81dcf5eb42466e832cf3d7ffe4fbe16 /lldb/source/Plugins/ScriptInterpreter/Python
parent909e600abd1e8519352c1b5eabb1a962b911697c (diff)
downloadbcm5719-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')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud