[PATCH] [clang-tidy] Add a checker that warns on const string & members.
Benjamin Kramer
benny.kra at gmail.com
Tue Jul 15 09:58:05 PDT 2014
Hi alexfh, djasper,
Those are considered unsafe and should be replaced with simple pointers or
full copies. It recognizes both std::string and ::string.
http://reviews.llvm.org/D4522
Files:
clang-tidy/google/CMakeLists.txt
clang-tidy/google/GoogleTidyModule.cpp
clang-tidy/google/MemberStringReferencesCheck.cpp
clang-tidy/google/MemberStringReferencesCheck.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4522.11451.patch
Type: text/x-patch
Size: 4863 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140715/f5556d9b/attachment.bin>
More information about the cfe-commits
mailing list