Add a new check, readability-redundant-string-init, that checks unnecessary string...
authorAlexander Kornienko <alexfh@google.com>
Thu, 25 Feb 2016 23:57:23 +0000 (23:57 +0000)
committerAlexander Kornienko <alexfh@google.com>
Thu, 25 Feb 2016 23:57:23 +0000 (23:57 +0000)
commit1612fa07d351cf5b4a4595dba07e12416a957137
tree81a3dba89d7b55dfdff701c84ff80e4cd05b670e
parenta354c5c43324127b44d2b7e2e2dccf07692b1013
Add a new check, readability-redundant-string-init, that checks unnecessary string initializations.

Reviewers: hokein, alexfh

Subscribers: cfe-commits

Patch by Shuai Wang!

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

llvm-svn: 261939
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
clang-tools-extra/clang-tidy/readability/CMakeLists.txt
clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp
clang-tools-extra/clang-tidy/readability/RedundantStringInitCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/readability/RedundantStringInitCheck.h [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/docs/clang-tidy/checks/readability-redundant-string-init.rst [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/readability-redundant-string-init.cpp [new file with mode: 0644]