diff options
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Literals.cpp')
-rw-r--r-- | src/libs/3rdparty/cplusplus/Literals.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libs/3rdparty/cplusplus/Literals.cpp b/src/libs/3rdparty/cplusplus/Literals.cpp index ca0cfc8735..17d02cf8bf 100644 --- a/src/libs/3rdparty/cplusplus/Literals.cpp +++ b/src/libs/3rdparty/cplusplus/Literals.cpp @@ -20,6 +20,7 @@ #include "Literals.h" #include "NameVisitor.h" +#include "Matcher.h" #include <cstring> #include <algorithm> #include <iostream> @@ -200,6 +201,13 @@ Identifier::~Identifier() void Identifier::accept0(NameVisitor *visitor) const { visitor->visit(this); } +bool Identifier::match0(const Name *otherName, Matcher *matcher) const +{ + if (const Identifier *id = otherName->asNameId()) + return matcher->match(this, id); + return false; +} + bool Identifier::isEqualTo(const Name *other) const { if (this == other) |