templatesimplifier: mark getTemplateNamePositionTemplateMember() static.
Fixes gcc 7-dev warning: lib/templatesimplifier.cpp: In function ‘bool getTemplateNamePositionTemplateMember(const Token*, int&)’: lib/templatesimplifier.cpp:715:6: warning: no previous declaration for ‘bool getTemplateNamePositionTemplateMember(const Token*, int&)’ [-Wmissing-declarations] bool getTemplateNamePositionTemplateMember(const Token *tok, int &namepos) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
295e4fdfc2
commit
a28f57344c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue