diff --git a/lib/templatesimplifier.cpp b/lib/templatesimplifier.cpp index 4ed2f6ba3..256ce736c 100644 --- a/lib/templatesimplifier.cpp +++ b/lib/templatesimplifier.cpp @@ -712,7 +712,7 @@ bool TemplateSimplifier::instantiateMatch(const Token *instance, const std::stri // Utility function for TemplateSimplifier::getTemplateNamePosition, that works on template member functions, // hence this pattern: "> %type% [%type%] < ... > :: %type% (" -bool getTemplateNamePositionTemplateMember(const Token *tok, int &namepos) +static bool getTemplateNamePositionTemplateMember(const Token *tok, int &namepos) { if (!Token::Match(tok, "> %type% <") && !Token::Match(tok, "> %type% %type% <")) return false;