diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-19 08:33:28 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-19 08:33:28 +0100 |
commit | 291f82eaf8dc07ebe3a5700938072cf5f3a11885 (patch) | |
tree | de6f9152be641d34eebc9e412fe1e33a1293823d /clang | |
parent | 409fc53ae78a04edcf7f1d7d3be1714590756bc4 (diff) |
clang: suggest "s_" for static members in find-unprefixed-members
Diffstat (limited to 'clang')
-rw-r--r-- | clang/find-unprefixed-members.cxx | 4 |
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())); |