Skip to content

Commit

Permalink
SymbolDatabase: fixed `readability-convert-member-functions-to-static…
Browse files Browse the repository at this point in the history
…` clang-tidy and `functionStatic` selfcheck warning
  • Loading branch information
firewave committed Mar 8, 2024
1 parent 6cb7286 commit bd819e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/symboldatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
2 changes: 1 addition & 1 deletion lib/symboldatabase.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string>& tokensThatAreNotEnumeratorValues) const;

Expand Down

0 comments on commit bd819e3

Please sign in to comment.