Skip to content

Commit bd819e3

Browse files
committed
SymbolDatabase: fixed readability-convert-member-functions-to-static clang-tidy and functionStatic selfcheck warning
1 parent 6cb7286 commit bd819e3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/symboldatabase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6451,7 +6451,7 @@ Function * SymbolDatabase::findFunctionInScope(const Token *func, const Scope *n
64516451

64526452
//---------------------------------------------------------------------------
64536453

6454-
bool SymbolDatabase::isReservedName(const Token* tok) const
6454+
bool SymbolDatabase::isReservedName(const Token* tok)
64556455
{
64566456
const std::string& iName = tok->str();
64576457
if (tok->isCpp()) {

lib/symboldatabase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ class CPPCHECKLIB SymbolDatabase {
14571457
void fixVarId(VarIdMap & varIds, const Token * vartok, Token * membertok, const Variable * membervar);
14581458

14591459
/** Whether the token is a keyword as defined in http://en.cppreference.com/w/c/keyword and http://en.cppreference.com/w/cpp/keyword*/
1460-
bool isReservedName(const Token* tok) const;
1460+
static bool isReservedName(const Token* tok);
14611461

14621462
const Enumerator * findEnumerator(const Token * tok, std::set<std::string>& tokensThatAreNotEnumeratorValues) const;
14631463

0 commit comments

Comments
 (0)