[Libreoffice-commits] dev-tools.git: clang/find-unprefixed-members.cxx
Miklos Vajna
vmiklos at collabora.co.uk
Mon Jan 4 00:14:00 PST 2016
clang/find-unprefixed-members.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 913bf1ab0e434b628b415d37e1cbaf9bb0d1d70c
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Mon Jan 4 09:13:28 2016 +0100
clang: guard against 0 pRecord
diff --git a/clang/find-unprefixed-members.cxx b/clang/find-unprefixed-members.cxx
index 5c92f70..9cb3503 100644
--- a/clang/find-unprefixed-members.cxx
+++ b/clang/find-unprefixed-members.cxx
@@ -95,7 +95,7 @@ public:
clang::RecordDecl* pRecord = pDecl->getQualifier()->getAsType()->getAsCXXRecordDecl();
- if (m_rContext.match(pRecord->getQualifiedNameAsString()))
+ if (pRecord && m_rContext.match(pRecord->getQualifiedNameAsString()))
{
std::string aName = pDecl->getNameAsString();
if (aName.find("s") != 0)
More information about the Libreoffice-commits
mailing list