[PATCH] D72448: [clang-tidy] readability-redundant-string-init now flags redundant initialisation in Field Decls and Constructor Initialisers

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 10 05:47:21 PST 2020


njames93 updated this revision to Diff 237297.
njames93 edited the summary of this revision.
njames93 added a comment.

Checks for string initialisations which are spelt with braces

Ensures the check will detect and fix brace initializations
Example:

std::string a{""};
std::string b = {""};

CxxConstructor : A{""} {}


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72448/new/

https://reviews.llvm.org/D72448

Files:
  clang-tools-extra/clang-tidy/readability/RedundantStringInitCheck.cpp
  clang-tools-extra/docs/ReleaseNotes.rst
  clang-tools-extra/test/clang-tidy/checkers/readability-redundant-string-init.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72448.237297.patch
Type: text/x-patch
Size: 9370 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200110/9ab9b582/attachment-0001.bin>


More information about the cfe-commits mailing list