data: fixed parsing problems

* fixed calleeDecl pointer not checked for CallExpr
* fixed CommentHandler not checking if valid file in FileRegister
This commit is contained in:
Eberhard Graether
2015-11-10 10:25:47 +01:00
parent 5ef9ef9e7d
commit 3351e4aad7
4 changed files with 22 additions and 12 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ void ASTBodyVisitor::VisitCallExpr(clang::CallExpr* expr)
{
clang::Decl* calleeDecl = expr->getCalleeDecl();
if (clang::isa<clang::CXXMethodDecl>(calleeDecl))
if (calleeDecl && clang::isa<clang::CXXMethodDecl>(calleeDecl))
{
clang::CXXRecordDecl* recordDecl = clang::dyn_cast<clang::CXXMethodDecl>(calleeDecl)->getParent();
ignore = recordDecl->isLambda();