[Libreoffice-commits] dev-tools.git: clang/find-unprefixed-members.cxx
Miklos Vajna
vmiklos at collabora.co.uk
Wed Nov 18 23:33:48 PST 2015
clang/find-unprefixed-members.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 291f82eaf8dc07ebe3a5700938072cf5f3a11885
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Thu Nov 19 08:33:28 2015 +0100
clang: suggest "s_" for static members in find-unprefixed-members
diff --git a/clang/find-unprefixed-members.cxx b/clang/find-unprefixed-members.cxx
index c79647a..5c92f70 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()));
More information about the Libreoffice-commits
mailing list