HomePhabricator

Fix another crash in the redundant-void-arg check.

Description

Fix another crash in the redundant-void-arg check.

Summary: The check was assuming that a definition of a function always has a body, but a declaration that explicitly defaults or deletes a function is a definition too.

Reviewers: alexfh

Subscribers: klimek, cfe-commits

Differential Revision: http://reviews.llvm.org/D14238

Details