[all-commits] [llvm/llvm-project] 96fbc3: [clang-tidy] Give readability-redundant-string-ini...
mitchell-stellar via All-commits
all-commits at lists.llvm.org
Fri Nov 15 13:44:23 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 96fbc32cb9ea23b1e7e3ff6906ec3ccda9500982
https://github.com/llvm/llvm-project/commit/96fbc32cb9ea23b1e7e3ff6906ec3ccda9500982
Author: Mitchell Balan <mitchell at stellarscience.com>
Date: 2019-11-15 (Fri, 15 Nov 2019)
Changed paths:
M clang-tools-extra/clang-tidy/readability/RedundantStringInitCheck.cpp
M clang-tools-extra/clang-tidy/readability/RedundantStringInitCheck.h
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/docs/clang-tidy/checks/readability-redundant-string-init.rst
M clang-tools-extra/test/clang-tidy/checkers/readability-redundant-string-init.cpp
Log Message:
-----------
[clang-tidy] Give readability-redundant-string-init a customizable list of string types to fix
Summary:
This patch adds a feature requested in https://reviews.llvm.org/D69238 to enable `readability-redundant-string-init` to take a list of strings to apply the fix to rather than hard-coding `basic_string`. It adds a `StringNames` option of semicolon-delimited names of string classes to which to apply this fix. Tests ensure this works with test class out::TestString as well as std::string and std::wstring as before. It should be applicable to llvm::StringRef, QString, etc.
Reviewers: MyDeveloperDay, aaron.ballman, hokein, alexfh, JonasToth, gribozavr2
Patch by: poelmanc
Subscribers: gribozavr2, xazax.hun, Eugene.Zelenko, cfe-commits
Tags: #clang-tools-extra, #clang
Differential Revision: https://reviews.llvm.org/D69548
More information about the All-commits
mailing list