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 693ea20 commit 8cf4a4bCopy full SHA for 8cf4a4b
lib/library.cpp
@@ -1330,7 +1330,11 @@ const Library::Container* Library::detectContainerInternal(const Token* const ty
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) {
+ (typeStart->previous()->tokType() == Token::Type::eType || // return type
1334
+ typeStart->previous()->tokType() == Token::Type::eArithmeticalOp || // *
1335
+ typeStart->previous()->tokType() == Token::Type::eOther || // ::
1336
+ typeStart->previous()->tokType() == Token::Type::eName // qualified return type
1337
+ )) {
1338
return nullptr;
1339
}
1340
// TODO: bail out on standard types
0 commit comments