Skip to content

Commit

Permalink
fix #13553
Browse files Browse the repository at this point in the history
  • Loading branch information
ludviggunne committed Jan 14, 2025
1 parent 185e56d commit 5c6e8d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/symboldatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2639,6 +2639,9 @@ const Token *Function::setFlags(const Token *tok1, const Scope *scope)
if (tok1->isInline())
isInlineKeyword(true);

if (tok1->isExternC())
isExtern(true);

// look for end of previous statement
while (tok1->previous() && !Token::Match(tok1->previous(), ";|}|{|public:|protected:|private:")) {
tok1 = tok1->previous();
Expand All @@ -2647,7 +2650,7 @@ const Token *Function::setFlags(const Token *tok1, const Scope *scope)
isInlineKeyword(true);

// extern function
if (tok1->isExternC() || tok1->str() == "extern") {
if (tok1->str() == "extern") {
isExtern(true);
}

Expand Down

0 comments on commit 5c6e8d5

Please sign in to comment.