From 291f82eaf8dc07ebe3a5700938072cf5f3a11885 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 19 Nov 2015 08:33:28 +0100 Subject: clang: suggest "s_" for static members in find-unprefixed-members --- clang/find-unprefixed-members.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang') diff --git a/clang/find-unprefixed-members.cxx b/clang/find-unprefixed-members.cxx index c79647aa..5c92f70f 100644 --- a/clang/find-unprefixed-members.cxx +++ b/clang/find-unprefixed-members.cxx @@ -98,9 +98,9 @@ public: if (m_rContext.match(pRecord->getQualifiedNameAsString())) { std::string aName = pDecl->getNameAsString(); - if (aName.find("m") != 0) + if (aName.find("s") != 0) { - aName.insert(0, "m_"); + aName.insert(0, "s_"); std::stringstream ss; ss << pDecl->getNameAsString() << "," << aName; m_aResults.push_back(std::make_pair(pRecord->getQualifiedNameAsString(), ss.str())); -- cgit v1.2.3