summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLib
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2018-11-21 19:51:35 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2018-11-21 23:11:37 (GMT)
commit3e6058078433089f145903d25e06dafadeee9629 (patch)
treebbebc4edfd260ba50379e1ce6342bb6a07a53d71 /Tests/CMakeLib
parent4e0c75b78f5745d1369867f25a46ab7d158b4469 (diff)
downloadCMake-3e6058078433089f145903d25e06dafadeee9629.zip
CMake-3e6058078433089f145903d25e06dafadeee9629.tar.gz
CMake-3e6058078433089f145903d25e06dafadeee9629.tar.bz2
clang-tidy: Fix readability-static-accessed-through-instance
Enable the check in .clang-tidy and fix all warnings.
Diffstat (limited to 'Tests/CMakeLib')
-rw-r--r--Tests/CMakeLib/PseudoMemcheck/memtester.cxx.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/CMakeLib/PseudoMemcheck/memtester.cxx.in b/Tests/CMakeLib/PseudoMemcheck/memtester.cxx.in
index b4c6fae4..3183bc0 100644
--- a/Tests/CMakeLib/PseudoMemcheck/memtester.cxx.in
+++ b/Tests/CMakeLib/PseudoMemcheck/memtester.cxx.in
@@ -15,15 +15,15 @@ int main(int ac, char** av)
std::string logarg;
bool nextarg = false;
- if (exename.find("valgrind") != exename.npos) {
+ if (exename.find("valgrind") != std::string::npos) {
logarg = "--log-file=";
- } else if (exename.find("purify") != exename.npos) {
+ } else if (exename.find("purify") != std::string::npos) {
#ifdef _WIN32
logarg = "/SAVETEXTDATA=";
#else
logarg = "-log-file=";
#endif
- } else if (exename.find("BC") != exename.npos) {
+ } else if (exename.find("BC") != std::string::npos) {
nextarg = true;
logarg = "/X";
}