We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9120e3 commit 693ea20Copy full SHA for 693ea20
lib/library.cpp
@@ -1327,6 +1327,13 @@ const Library::Container* Library::detectContainerInternal(const Token* const ty
1327
if (typeStart->tokType() != Token::Type::eType && typeStart->tokType() != Token::Type::eName) {
1328
return nullptr;
1329
}
1330
+ // bail out on function declarations (without implementation)
1331
+ if (typeStart->tokType() == Token::Type::eName &&
1332
+ typeStart->previous() &&
1333
+ typeStart->previous()->tokType() == Token::Type::eType) {
1334
+ return nullptr;
1335
+ }
1336
+ // TODO: bail out on standard types
1337
const Token* firstLinkedTok = nullptr;
1338
for (const Token* tok = typeStart; tok && !tok->varId(); tok = tok->next()) {
1339
if (!tok->link())
0 commit comments