summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/performance-faster-string-find.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] Remove unnecessary getName() on Decls and Types feeding into a ↵Benjamin Kramer2016-04-071-13/+13
| | | | | | | | | | DiagnosticBuilder Going through a string removes some of the smarts of the diagnosic printer and makes the code more complicated. This change has some cosmetic impact on the output but that's mostly minor. llvm-svn: 265680
* [clang-tidy] Add check performance-faster-string-findSamuel Benzaquen2016-02-121-0/+110
Summary: Add check performance-faster-string-find. It replaces single character string literals to character literals in calls to string::find and friends. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D16152 llvm-svn: 260712
OpenPOWER on IntegriCloud