[clang-tidy] Fix FP with readability-redundant-string-init for default arguments
authorEtienne Bergeron <etienneb@google.com>
Thu, 7 Apr 2016 14:18:53 +0000 (14:18 +0000)
committerEtienne Bergeron <etienneb@google.com>
Thu, 7 Apr 2016 14:18:53 +0000 (14:18 +0000)
commitf6660dab0251b86bd0c5412bfd6858bfcd908104
tree7e26bfec91e7e8748f81a5639bcd88a30e861966
parente23b6deb01e0e68734814ad48ab6de4980a8cd6b
[clang-tidy] Fix FP with readability-redundant-string-init for default arguments

Summary:
Clang-tidy is reporting a warning of redundant string initialisation
on a string parameter initialized with empty string.

See bug: 27087

The reported example is:
```
#include <string>
void fn(std::string a = "");
```

Reviewers: alexfh

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D18829

llvm-svn: 265671
clang-tools-extra/clang-tidy/readability/RedundantStringInitCheck.cpp
clang-tools-extra/test/clang-tidy/readability-redundant-string-init.cpp