summaryrefslogtreecommitdiff
path: root/clang
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-11-19 08:33:28 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-11-19 08:33:28 +0100
commit291f82eaf8dc07ebe3a5700938072cf5f3a11885 (patch)
treede6f9152be641d34eebc9e412fe1e33a1293823d /clang
parent409fc53ae78a04edcf7f1d7d3be1714590756bc4 (diff)
clang: suggest "s_" for static members in find-unprefixed-members
Diffstat (limited to 'clang')
-rw-r--r--clang/find-unprefixed-members.cxx4
1 files changed, 2 insertions, 2 deletions
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()));