Skip to content

Commit 5c6e8d5

Browse files
committed
fix #13553
1 parent 185e56d commit 5c6e8d5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: lib/symboldatabase.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -2639,6 +2639,9 @@ const Token *Function::setFlags(const Token *tok1, const Scope *scope)
26392639
if (tok1->isInline())
26402640
isInlineKeyword(true);
26412641

2642+
if (tok1->isExternC())
2643+
isExtern(true);
2644+
26422645
// look for end of previous statement
26432646
while (tok1->previous() && !Token::Match(tok1->previous(), ";|}|{|public:|protected:|private:")) {
26442647
tok1 = tok1->previous();
@@ -2647,7 +2650,7 @@ const Token *Function::setFlags(const Token *tok1, const Scope *scope)
26472650
isInlineKeyword(true);
26482651

26492652
// extern function
2650-
if (tok1->isExternC() || tok1->str() == "extern") {
2653+
if (tok1->str() == "extern") {
26512654
isExtern(true);
26522655
}
26532656

0 commit comments

Comments
 (0)