HomePhabricator

[analyzer][NFC] Introduce CallDescription::matches() in addition to isCalled()

Authored by steakhal on Fri, Nov 19, 9:32 AM.

Description

[analyzer][NFC] Introduce CallDescription::matches() in addition to isCalled()

This patch introduces CallDescription::matches() member function,
accepting a CallEvent.
Semantically, Call.isCalled(CD) is the same as CD.matches(Call).

The patch also introduces the matchesAny() variadic free function template.
It accepts a CallEvent and at least one CallDescription to match
against.

Reviewed By: martong

Differential Revision: https://reviews.llvm.org/D113590

Details