Skip to content

Commit e551333

Browse files
committed
[analyzer][MallocChecker][NFC] Change the use of IdentifierInfo* to CallDescription
Exactly what it says on the tin! I decided not to merge this with the patch that changes all these to a CallDescriptionMap object, so the patch is that much more trivial. Differential Revision: https://reviews.llvm.org/D68163
1 parent e09754c commit e551333

File tree

4 files changed

+288
-210
lines changed

4 files changed

+288
-210
lines changed

clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,13 @@ class CallEvent {
258258
/// calls.
259259
bool isCalled(const CallDescription &CD) const;
260260

261+
/// Returns true whether the CallEvent is any of the CallDescriptions supplied
262+
/// as a parameter.
263+
template <typename FirstCallDesc, typename... CallDescs>
264+
bool isCalled(const FirstCallDesc &First, const CallDescs &... Rest) const {
265+
return isCalled(First) || isCalled(Rest...);
266+
}
267+
261268
/// Returns a source range for the entire call, suitable for
262269
/// outputting in diagnostics.
263270
virtual SourceRange getSourceRange() const {

0 commit comments

Comments
 (0)