Kaydet (Commit) fa4afe02 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Handle ImplicitCastExpr w/ invalid loc from Objective C code

Change-Id: I82cb8aa53ea5fd86d6ff46af876dd3f55e1123d1
üst 411fcfff
......@@ -180,7 +180,9 @@ bool Plugin::ignoreLocation( const Decl* decl )
inline
bool Plugin::ignoreLocation( const Stmt* stmt )
{
return ignoreLocation( stmt->getLocStart());
// Invalid location can happen at least for ImplicitCastExpr of
// ImplicitParam 'self' in Objective C method declarations:
return stmt->getLocStart().isValid() && ignoreLocation( stmt->getLocStart());
}
template< typename T >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment