summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/misc/StringCompareCheck.h
Commit message (Collapse)AuthorAgeFilesLines
* clang-tidy/rename_check.py misc-string-compare readability-string-compareAlexander Kornienko2018-01-301-36/+0
| | | | llvm-svn: 323766
* [clang-tidy] Add check 'misc-string-compare'.Mads Ravn2016-12-301-0/+36
I have a created a new check for clang tidy: misc-string-compare. This will check for incorrect usage of std::string::compare when used to check equality or inequality of string instead of the string equality or inequality operators. Example: ``` std::string str1, str2; if (str1.compare(str2)) { } ``` Reviewers: hokein, aaron.ballman, alexfh, malcolm.parsons Subscribers: xazax.hun, Eugene.Zelenko, cfe-commits, malcolm.parsons, Prazek, mgorny, JDevlieghere Differential Revision: https://reviews.llvm.org/D27210 llvm-svn: 290747
OpenPOWER on IntegriCloud