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:
Matthias Krüger 2017-05-03 08:45:48 +02:00
parent 295e4fdfc2
commit a28f57344c
1 changed files with 1 additions and 1 deletions

View File

@ -712,7 +712,7 @@ bool TemplateSimplifier::instantiateMatch(const Token *instance, const std::stri
// Utility function for TemplateSimplifier::getTemplateNamePosition, that works on template member functions, // Utility function for TemplateSimplifier::getTemplateNamePosition, that works on template member functions,
// hence this pattern: "> %type% [%type%] < ... > :: %type% (" // 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% <")) if (!Token::Match(tok, "> %type% <") && !Token::Match(tok, "> %type% %type% <"))
return false; return false;