diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index e4fb576196b3..5ca82ede7819 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -6451,7 +6451,7 @@ Function * SymbolDatabase::findFunctionInScope(const Token *func, const Scope *n //--------------------------------------------------------------------------- -bool SymbolDatabase::isReservedName(const Token* tok) const +bool SymbolDatabase::isReservedName(const Token* tok) { const std::string& iName = tok->str(); if (tok->isCpp()) { diff --git a/lib/symboldatabase.h b/lib/symboldatabase.h index 4beb56fc637b..1395caed76db 100644 --- a/lib/symboldatabase.h +++ b/lib/symboldatabase.h @@ -1457,7 +1457,7 @@ class CPPCHECKLIB SymbolDatabase { void fixVarId(VarIdMap & varIds, const Token * vartok, Token * membertok, const Variable * membervar); /** Whether the token is a keyword as defined in http://en.cppreference.com/w/c/keyword and http://en.cppreference.com/w/cpp/keyword*/ - bool isReservedName(const Token* tok) const; + static bool isReservedName(const Token* tok); const Enumerator * findEnumerator(const Token * tok, std::set& tokensThatAreNotEnumeratorValues) const;